diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-31 12:45:54 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-07-31 12:45:54 +0200 |
commit | bad2a3e97a92b32c163510e7a0764034c1f87d80 (patch) | |
tree | 8f42f5ab9b9e3bff768cd375997b82d9ef1d2ec7 | |
parent | a40de1a8987a982780daf207369fdd457de17fa1 (diff) |
add maintainer mode for building WIP main-window mixins
-rw-r--r-- | cmake/opentrack-platform.cmake | 2 | ||||
-rw-r--r-- | main-window/CMakeLists.txt | 10 | ||||
-rw-r--r-- | 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") |