summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gui/CMakeLists.txt18
1 files changed, 5 insertions, 13 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 216b6f0e..cb5e2bdc 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -1,6 +1,6 @@
otr_module(user-interface BIN)
-target_link_libraries(opentrack-user-interface
+target_link_libraries(${self}
opentrack-migration
opentrack-logic
opentrack-spline
@@ -8,18 +8,10 @@ target_link_libraries(opentrack-user-interface
opentrack-version
)
+# for process detector
if(APPLE)
- # for process detector
- target_link_libraries(opentrack-user-interface proc)
-endif()
-
-if(LINUX)
- target_link_libraries(opentrack-user-interface dl)
- # for process detector
-
- # XXX copy-paste from qxt-mini module
- # make a pkg-config wrapper
- # also set ${self} to target's name when invoking `otr_module' -sh 20180527
- otr_pkgconfig(opentrack-user-interface libprocps)
+ target_link_libraries(${self} proc)
+elseif(LINUX)
+ otr_pkgconfig(${self} libprocps)
endif()