From b252ceaf9bd55cc4df674b49b5fbd418a66976d1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 28 May 2018 00:04:11 +0200 Subject: gui/cmake: cleanup --- gui/CMakeLists.txt | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) (limited to 'gui/CMakeLists.txt') 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() -- cgit v1.2.3