-
Notifications
You must be signed in to change notification settings - Fork 165
/
Copy pathCMakeLists.txt
108 lines (95 loc) · 2.48 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# trade-frame/ComboTrading
cmake_minimum_required (VERSION 3.13)
PROJECT(ComboTrading)
#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 REQUIRED COMPONENTS system date_time program_options thread filesystem serialization regex log log_setup)
#message("boost lib: ${Boost_LIBRARIES}")
set(
file_h
BundleTracking.h
ComboTrading.h
InstrumentActions.h
PanelCharts.h
Process.h
TreeItemGroup.h
TreeItem.h
TreeItemInstrument.h
TreeItemPortfolio.h
TreeItemPosition.h
TreeOps.h
)
set(
file_cpp
BundleTracking.cpp
ComboTrading.cpp
InstrumentActions.cpp
PanelCharts.cpp
Process.cpp
TreeItem.cpp
TreeItemGroup.cpp
TreeItemInstrument.cpp
TreeItemPortfolio.cpp
TreeItemPosition.cpp
TreeOps.cpp
)
add_executable(
${PROJECT_NAME}
${file_h}
${file_cpp}
)
target_compile_definitions(${PROJECT_NAME} PUBLIC BOOST_LOG_DYN_LINK )
#target_compile_definitions(${PROJECT_NAME} PUBLIC BOOST_SPIRIT_USE_PHOENIX_V3 )
target_compile_definitions(${PROJECT_NAME} PUBLIC wxUSE_GUI )
# need to figure out how to make this work
#add_compile_options(`/usr/local/bin/wx-config --cxxflags`)
target_compile_definitions(${PROJECT_NAME} PUBLIC -D_FILE_OFFSET_BITS=64 )
target_compile_definitions(${PROJECT_NAME} PUBLIC -DWXUSINGDLL )
target_compile_definitions(${PROJECT_NAME} PUBLIC -D__WXGTK__ )
target_include_directories(
${PROJECT_NAME} PUBLIC
"../lib"
"/usr/local/lib/wx/include/gtk3-unicode-${WX_VERSION_MAJOR}"
"/usr/local/include/wx-${WX_VERSION_MAJOR}"
)
target_link_directories(
${PROJECT_NAME} PUBLIC
/usr/local/lib
)
target_link_libraries(
${PROJECT_NAME}
TFBitsNPieces
TFInteractiveBrokers
TFIQFeed
TFSimulation
TFOptions
TFVuTrading
TFTrading
TFTimeSeries
TFHDF5TimeSeries
OUCharting
OUStatistics
OUSQL
OUSqlite
ExcelFormat
OUCommon
OUFormulas
dl
z
curl
${Boost_LIBRARIES}
# wx_gtk3u_adv-3.1
wx_gtk3u_core-${WX_VERSION_MAJOR}
wx_baseu-${WX_VERSION_MAJOR}
pthread
)