summaryrefslogtreecommitdiffhomepage
path: root/gui/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'gui/CMakeLists.txt')
-rw-r--r--gui/CMakeLists.txt22
1 files changed, 13 insertions, 9 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 954fa67a..8c57221a 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -1,21 +1,25 @@
otr_module(user-interface BIN)
-target_link_libraries(opentrack-user-interface
+target_link_libraries(${self}
opentrack-migration
opentrack-logic
opentrack-spline
opentrack-pose-widget
- opentrack-version
)
+# for process detector
if(APPLE)
- # for process detector
- target_link_libraries(opentrack-user-interface proc)
+ target_link_libraries(${self} proc)
+elseif(LINUX)
+ otr_pkgconfig_(has-libproc2 ${self} libproc2)
+ if(has-libproc2)
+ target_compile_definitions(${self} PRIVATE -DOTR_HAS_LIBPROC2)
+ else()
+ otr_pkgconfig(${self} libprocps)
+ endif()
endif()
-if(LINUX)
- target_link_libraries(opentrack-user-interface dl)
- # for process detector
- target_link_libraries(opentrack-user-interface procps)
+if(NOT APPLE AND NOT WIN32)
+ target_compile_definitions(${self} PRIVATE -DOTR_X11_THREADS)
+ otr_pkgconfig(${self} x11)
endif()
-