forked from everettjf/MachOExplorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (24 loc) · 824 Bytes
/
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
cmake_minimum_required(VERSION 3.6)
project(moex)
set(CMAKE_CXX_STANDARD 11)
file(GLOB_RECURSE libMOEXSRC libmoex/*.cpp)
file(GLOB_RECURSE libMOEXHEADERS libmoex/*.h)
file(GLOB_RECURSE GUIMOEXSRC moex-ui/*.cpp)
file(GLOB_RECURSE GUIMOEXHEADERS moex-ui/*.h)
set(CLISOURCE_FILES
${libMOEXSRC}
${libMOEXHEADERS}
moex-cli/moex-cli.cpp)
set(GUISOURCE_FILES
${libMOEXSRC}
${libMOEXHEADERS}
${GUIMOEXSRC}
${GUIMOEXHEADERS}
)
include_directories(./)
add_executable(moex-cli ${CLISOURCE_FILES})
add_executable(moex-gui ${GUISOURCE_FILES})
# see https://cmake.org/cmake/help/latest/module/FindBoost.html
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIR})
target_link_libraries(moex-cli ${Boost_LIBRARIES})