-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathCMakeLists.txt
72 lines (59 loc) · 1.34 KB
/
CMakeLists.txt
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# trade-frame/lib/TFTimeSeries
cmake_minimum_required (VERSION 3.13)
PROJECT(TFTimeSeries)
#set(CMAKE_EXE_LINKER_FLAGS "--trace --verbose")
#set(CMAKE_VERBOSE_MAKEFILE ON)
set(Boost_ARCHITECTURE "-x64")
#set(BOOST_LIBRARYDIR "/usr/local/lib")
set(BOOST_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(BOOST_USE_STATIC_RUNTIME OFF)
#set(Boost_DEBUG 1)
#set(Boost_REALPATH ON)
#set(BOOST_ROOT "/usr/local")
#set(Boost_DETAILED_FAILURE_MSG ON)
set(BOOST_INCLUDEDIR "/usr/local/include/boost")
#find_package(Boost ${TF_BOOST_VERSION} CONFIG COMPONENTS system REQUIRED)
set(
file_h
Adapters.h
BarFactory.h
DatedDatum.h
DoubleBuffer.h
ExchangeHolidays.h
# MergeDatedDatumCarrier.h
# MergeDatedDatums.h
TimeSeries.h
TSAllocator.h
TSMicrostructure.h
)
set(
file_cpp
BarFactory.cpp
DatedDatum.cpp
DoubleBuffer.cpp
ExchangeHolidays.cpp
# MergeDatedDatums.cpp
TimeSeries.cpp
TSAllocator.cpp
TSMicrostructure.cpp
)
add_library(
${PROJECT_NAME}
${file_h}
${file_cpp}
)
target_compile_definitions(${PROJECT_NAME} PUBLIC BOOST_LOG_DYN_LINK )
target_include_directories(
${PROJECT_NAME} PUBLIC
".."
)
#target_link_libraries(
# ${PROJECT_NAME}
# ${Boost_LIBRARIES}
# )
install(
TARGETS ${PROJECT_NAME}
# LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)