diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-01 08:39:46 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-01 08:49:12 +0100 |
commit | e04fe7d7b412c502c30c3eaf9d54b0eebf708d2b (patch) | |
tree | 0c61ecb4c612e8717d4aef605b1f316ca6881f97 /gui | |
parent | cc16fd0121fe79ae1fd9539a606c19827f64bc23 (diff) |
cmake: less boilerplate, link dynamically
Diffstat (limited to 'gui')
-rw-r--r-- | gui/CMakeLists.txt | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index f483f695..158804c2 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -17,12 +17,16 @@ opentrack_compat(opentrack) if(NOT WIN32) set_target_properties(opentrack PROPERTIES SUFFIX ".bin") endif() -target_link_libraries(opentrack opentrack-api opentrack-version opentrack-pose-widget opentrack-spline-widget) -if(UNIX OR APPLE) - target_link_libraries(opentrack opentrack-qxt-mini) -endif() + +target_link_libraries(opentrack + opentrack-spline-widget + opentrack-pose-widget + opentrack-api + opentrack-compat + opentrack-version +) + link_with_dinput8(opentrack) -target_link_libraries(opentrack ${MY_QT_LIBS}) if(APPLE) # for process detector @@ -30,6 +34,7 @@ if(APPLE) endif() if(LINUX) + target_link_libraries(opentrack dl) # for process detector target_link_libraries(opentrack procps) endif() |