summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-platform.cmake2
-rw-r--r--main-window/CMakeLists.txt10
-rw-r--r--sdk-paths-sthalik@MSVC-windows.cmake1
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")