diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-08 15:41:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-08 19:19:06 +0100 |
commit | 5ac9e29051030ca2403a86bd0c5f90aa3ce78d40 (patch) | |
tree | 33b07324b148bb4367f33993b98650f782d4e943 /cmake | |
parent | 119b91384aca66dfef40921021d13c930c455620 (diff) |
cmake: kill obsolete variant stuff
This isn't needed for TrackHat as we switched to a different method.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-variant.cmake | 53 |
1 files changed, 28 insertions, 25 deletions
diff --git a/cmake/opentrack-variant.cmake b/cmake/opentrack-variant.cmake index 9fb23f0a..5cb4bd57 100644 --- a/cmake/opentrack-variant.cmake +++ b/cmake/opentrack-variant.cmake @@ -1,29 +1,32 @@ include_guard(GLOBAL) -function(otr_dist_select_variant) - file(GLOB variants CONFIGURE_DEPENDS "variant/*") +function(otr_init_variant) + set_property(GLOBAL PROPERTY opentrack-variant "default") + set_property(GLOBAL PROPERTY opentrack-ident "opentrack-2.3") - set(variant-list "") - - foreach(k ${variants}) - get_filename_component(name "${k}" NAME) - if(EXISTS "${k}/_variant.cmake") - list(APPEND variant-list "${name}") - else() - message(FATAL_ERROR "stray variant dir '${name}'") - endif() - endforeach() - - set(opentrack_variant "default" CACHE STRING "") - set(dir "${CMAKE_SOURCE_DIR}/variant/${opentrack_variant}") - - if(NOT EXISTS "${dir}/_variant.cmake") - set(opentrack_variant "default" CACHE STRING "" FORCE) - set(dir "${CMAKE_SOURCE_DIR}/variant/${opentrack_variant}") - endif() - - set_property(CACHE opentrack_variant PROPERTY STRINGS "${variant-list}") - - include("${dir}/_variant.cmake") - otr_init_variant() + set(subprojects + "tracker-*" + "proto-*" + "filter-*" + "options" + "api" + "compat" + "logic" + "dinput" + "gui" + "main" + "x-plane-plugin" + "csv" + "pose-widget" + "spline" + "qxt-mini" + "macosx" + "cv" + "migration" + "main-window" + "video" + "video-*" + "opentrack" + ) + set_property(GLOBAL PROPERTY opentrack-subprojects "${subprojects}") endfunction() |