summaryrefslogtreecommitdiffhomepage
path: root/gui/CMakeLists.txt
blob: 398223b32e89efa476c5e7543cbc3538bd4ae70e (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
otr_module(user-interface BIN)

target_link_libraries(${self}
    opentrack-migration
    opentrack-logic
    opentrack-spline
    opentrack-pose-widget
)

# for process detector
if(APPLE)
    target_link_libraries(${self} proc)
elseif(LINUX)
    otr_pkgconfig_(has-libproc2 ${self} libproc2)
    if(has-libproc2)
        message(STATUS "!!!!! has libproc2")
        target_compile_definitions(${self} PRIVATE -DOTR_HAS_LIBPROC2)
    else()
        message(STATUS "!!!!! no libproc2")
        otr_pkgconfig(${self} libprocps)
    endif()
endif()

if(NOT APPLE AND NOT WIN32)
    target_compile_definitions(${self} PRIVATE -DOTR_X11_THREADS)
    otr_pkgconfig(${self} x11)
endif()