summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-variant.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-13 09:23:26 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-13 09:23:26 +0100
commit15375537ebafd5b4ff2a1dad6d496ae5f1e1fd5b (patch)
treed437cceb24c3e7f393afbbf15f7ff711240c0fc3 /cmake/opentrack-variant.cmake
parent9f06603e2d752f574b145bc3c4b5e453d7d306d0 (diff)
cmake: variant work
Diffstat (limited to 'cmake/opentrack-variant.cmake')
-rw-r--r--cmake/opentrack-variant.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/opentrack-variant.cmake b/cmake/opentrack-variant.cmake
index 7418f882..607aa441 100644
--- a/cmake/opentrack-variant.cmake
+++ b/cmake/opentrack-variant.cmake
@@ -1,8 +1,8 @@
-# set these as cache variables manually
-
set(opentrack_variant "default" CACHE STRING "")
set_property(CACHE opentrack_variant PROPERTY STRINGS "default;trackmouse")
+# XXX that belongs in each variant's directory!
+
function(otr_dist_select_variant)
if(opentrack_variant STREQUAL "trackmouse")
set_property(GLOBAL PROPERTY opentrack-variant "trackmouse")
@@ -17,6 +17,7 @@ function(otr_dist_select_variant)
"logic"
"dinput"
"gui"
+ "pose-widget"
"spline"
"cv"
"migration")