diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 19:31:07 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 19:31:07 +0100 |
commit | de3acc40fabcbf2efc71422bc867c882ffbdaa65 (patch) | |
tree | fc2f6230b953b0ff520537791b2c93195cffe5ef | |
parent | aaa96959a1003ee5e34c4c121286b371bc298ade (diff) |
cmake: fix otr_module(x SUBDIRS ...)
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 7 |
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) |