summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 0db91bd0..fca876ff 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -136,7 +136,12 @@ function(otr_module n_)
set(n "opentrack-${n_}")
- otr_glob_sources(${n} ${arg_SUBDIRS})
+ if(NOT arg_SUBDIRS)
+ otr_glob_sources(${n} .)
+ else()
+ otr_glob_sources(${n} ${arg_SUBDIRS})
+ endif()
+
list(APPEND ${n}-all ${arg_SOURCES})
if(NOT arg_NO-QT)