forked from labstreaminglayer/App-EGIAmpServer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
38 lines (34 loc) · 1002 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
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.5)
project(EGIAmpServer400
LANGUAGES CXX
VERSION 1.13.0)
include(Findliblsl.cmake)
find_package(Qt5 REQUIRED COMPONENTS Widgets)
cmake_policy(SET CMP0074 NEW) # <- Required to avoid conflict between BOOST_ROOT and Boost_ROOT
find_package(Boost REQUIRED)
find_package(Threads REQUIRED)
add_executable(${PROJECT_NAME} MACOSX_BUNDLE WIN32
main.cpp
EGIAmpWindow.cpp
EGIAmpWindow.h
EGIAmpWindow.ui
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
Qt5::Widgets
Threads::Threads
LSL::lsl
Boost::boost
)
message(STATUS ${Boost_VERSION})
if(Boost_VERSION LESS 106900)
find_package(Boost COMPONENTS system REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE Boost::system)
endif()
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 14)
target_compile_definitions(${PROJECT_NAME} PRIVATE BOOST BOOST_DATE_TIME_NO_LIB BOOST_REGEX_NO_LIB)
installLSLApp(${PROJECT_NAME})
installLSLAuxFiles(${PROJECT_NAME}
ampserver_config.cfg
)
LSLGenerateCPackConfig()