diff options
Diffstat (limited to 'cmake/opentrack-variant.cmake')
-rw-r--r-- | cmake/opentrack-variant.cmake | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/cmake/opentrack-variant.cmake b/cmake/opentrack-variant.cmake new file mode 100644 index 00000000..7418f882 --- /dev/null +++ b/cmake/opentrack-variant.cmake @@ -0,0 +1,50 @@ +# set these as cache variables manually + +set(opentrack_variant "default" CACHE STRING "") +set_property(CACHE opentrack_variant PROPERTY STRINGS "default;trackmouse") + +function(otr_dist_select_variant) + if(opentrack_variant STREQUAL "trackmouse") + set_property(GLOBAL PROPERTY opentrack-variant "trackmouse") + set_property(GLOBAL PROPERTY opentrack-ident "trackmouse-prototype") + set(subprojects + "tracker-pt" + "proto-mouse" + "filter-accela" + "options" + "api" + "compat" + "logic" + "dinput" + "gui" + "spline" + "cv" + "migration") + set_property(GLOBAL PROPERTY opentrack-subprojects "${subprojects}") + else() + set_property(GLOBAL PROPERTY opentrack-variant "default") + set_property(GLOBAL PROPERTY opentrack-ident "opentrack-2.3") + set(subprojects + "tracker-*" + "proto-*" + "filter-*" + "ext-*" + "options" + "api" + "compat" + "logic" + "dinput" + "gui" + "main" + "x-plane-plugin" + "csv" + "pose-widget" + "spline" + "qxt-mini" + "macosx" + "cv" + "migration") + set_property(GLOBAL PROPERTY opentrack-subprojects "${subprojects}") + endif() +endfunction() + |