forked from rburkholder/trade-frame
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
121 lines (108 loc) · 2.66 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
108
109
110
111
112
113
114
115
116
117
118
119
120
# trade-frame/ComboTrading
cmake_minimum_required (VERSION 3.13)
PROJECT(ComboTrading)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_COMPILER_ARCHITECTURE_ID, "x64")
#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 1.77.0 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-3.0"
"/usr/local/include/wx-3.0"
)
target_link_directories(
${PROJECT_NAME} PUBLIC
/usr/local/lib
)
target_link_libraries(
${PROJECT_NAME}
TFBitsNPieces
TFInteractiveBrokers
ib_client
bidgcc000
TFIQFeed
TFSimulation
TFOptions
TFVuTrading
TFTrading
TFTimeSeries
TFHDF5TimeSeries
OUCharting
OUStatistics
OUSQL
OUSqlite
ExcelFormat
OUCommon
OUFormulas
hdf5_cpp
hdf5
sz
dl
z
curl
chartdir
${Boost_LIBRARIES}
# wx_gtk3u_xrc-3.0
# wx_gtk3u_html-3.0
# wx_gtk3u_qa-3.0
wx_gtk3u_adv-3.0
wx_gtk3u_core-3.0
# wx_baseu_xml-3.0
# wx_baseu_net-3.0
wx_baseu-3.0
pthread
)