summaryrefslogtreecommitdiffhomepage
path: root/gui/CMakeLists.txt
blob: 6fa8d0340e2c83bd7e0a516ced40a3539527f7ac (plain)
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
opentrack_boilerplate(opentrack NO-LIBRARY)

if(WIN32)
    SET(SDK_CONSOLE_DEBUG FALSE CACHE BOOL "Console window visible at runtime")
endif()

if(WIN32 AND NOT SDK_CONSOLE_DEBUG)
    set(opentrack-win32-executable WIN32)
else()
    set(opentrack-win32-executable "")
endif()

add_executable(opentrack ${opentrack-win32-executable} ${opentrack-all})

set_target_properties(opentrack PROPERTIES SUFFIX "${opentrack-binary-suffix}")

target_link_libraries(opentrack
    opentrack-logic
    opentrack-spline-widget
    opentrack-pose-widget
    opentrack-version
)

if(APPLE)
    # for process detector
    target_link_libraries(opentrack proc)
endif()

if(LINUX)
    target_link_libraries(opentrack dl)
    # for process detector
    target_link_libraries(opentrack procps)
endif()

opentrack_boilerplate(opentrack STAGE2 BIN)