aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted/boost/libs/chrono/CMakeLists.txt
blob: 830939adc86ffd943bb2af1e6a0f84ab1b18ee0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
add_library(boost-libs-chrono)
target_compile_options(boost-libs-chrono PRIVATE
  -DBOOST_ATOMIC_STATIC_LINK=1
  -DBOOST_All_STATIC_LINK=1
  -DBOOST_CHRONO_STATIC_LINK=1
  -DBOOST_SYSTEM_STATIC_LINK=1
  -DBOOST_TIMER_STATIC_LINK=1
  -DBOOST_ALL_NO_LIB=1
  -DBOOST_ATOMIC_SOURCE
  -DBOOST_COROUTINES_SOURCE
  -DBOOST_DISABLE_ASSERTS
  -DBOOST_SPIRIT_USE_PHOENIX_V3=1
  -DBOOST_SYSTEM_NO_DEPRECATED
  -DBOOST_THREAD_BUILD_LIB=1
  -DBOOST_THREAD_DONT_USE_CHRONO=1
  -DBOOST_THREAD_NO_LIB=1
  -DBOOST_THREAD_USE_LIB=1
  -DDATE_TIME_INLINE
  -DBOOST_THREAD_DONT_USE_CHRONO
  -DBOOST_THREAD_POSIX
)
target_include_directories(boost-libs-chrono PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/boost/predef
)
target_link_libraries(boost-libs-chrono PUBLIC
  contrib-libs-cxxsupp
  contrib-restricted-boost
)
target_sources(boost-libs-chrono PRIVATE
  ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/chrono.cpp
  ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/process_cpu_clocks.cpp
  ${CMAKE_SOURCE_DIR}/contrib/restricted/boost/libs/chrono/src/thread_clock.cpp
)