From bad2a3e97a92b32c163510e7a0764034c1f87d80 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 31 Jul 2018 12:45:54 +0200 Subject: add maintainer mode for building WIP main-window mixins --- cmake/opentrack-platform.cmake | 2 ++ main-window/CMakeLists.txt | 10 ++++++---- sdk-paths-sthalik@MSVC-windows.cmake | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 630da3bd..de711ac4 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -149,3 +149,5 @@ endif() if(UNIX AND NOT APPLE) include(opentrack-pkg-config) endif() + +set(opentrack_maintainer-mode FALSE CACHE BOOL "Select if developing core code (not modules)") diff --git a/main-window/CMakeLists.txt b/main-window/CMakeLists.txt index f69080f1..c9228536 100644 --- a/main-window/CMakeLists.txt +++ b/main-window/CMakeLists.txt @@ -1,4 +1,6 @@ -otr_module(main-window BIN NO-INSTALL) -foreach(k user-interface logic pose-widget migration spline) - target_link_libraries(${self} opentrack-${k}) -endforeach() +if(opentrack_maintainer-mode) + otr_module(main-window BIN NO-INSTALL) + foreach(k user-interface logic pose-widget migration spline) + target_link_libraries(${self} opentrack-${k}) + endforeach() +endif() diff --git a/sdk-paths-sthalik@MSVC-windows.cmake b/sdk-paths-sthalik@MSVC-windows.cmake index 852ae946..dacdd1bb 100644 --- a/sdk-paths-sthalik@MSVC-windows.cmake +++ b/sdk-paths-sthalik@MSVC-windows.cmake @@ -18,6 +18,7 @@ function(setq name value) endfunction() set(opentrack_install-debug-info TRUE CACHE INTERNAL "" FORCE) +set(opentrack_maintainer-mode TRUE CACHE INTERNAL "" FORCE) setq(Qt5_DIR "../qt-5.10.0/lib/cmake/Qt5") setq(OpenCV_DIR "opencv/build") -- cgit v1.2.3