summaryrefslogtreecommitdiffhomepage
path: root/gui/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-05-28 00:04:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-05-28 00:04:11 +0200
commitb252ceaf9bd55cc4df674b49b5fbd418a66976d1 (patch)
tree594241f43099b78c7fc602e94dbcf4c27db01805 /gui/CMakeLists.txt
parentde6177a7793ad27f683b333c636a8cd47415f192 (diff)
gui/cmake: cleanup
Diffstat (limited to 'gui/CMakeLists.txt')
-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()