summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmake/opentrack-boilerplate.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 38d3369d..4fba9a95 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -33,15 +33,15 @@ function(otr_glob_sources var)
set(basedir "${CMAKE_CURRENT_SOURCE_DIR}")
foreach(dir . ${ARGN})
set(dir "${basedir}/${dir}")
- file(GLOB ${var}-cxx ${dir}/*.cpp)
- file(GLOB ${var}-cc ${dir}/*.c)
- file(GLOB ${var}-hh ${dir}/*.h ${dir}/*.hpp)
- file(GLOB ${var}-res ${dir}/*.rc)
+ file(GLOB ${var}-cxx "${dir}/*.cpp")
+ file(GLOB ${var}-cc "${dir}/*.c")
+ file(GLOB ${var}-hh "${dir}/*.h" "${dir}/*.hpp" "${dir}/*.inc")
+ file(GLOB ${var}-res "${dir}/*.rc")
foreach(f ${var}-res)
set_source_files_properties(${f} PROPERTIES LANGUAGE RC)
endforeach()
- file(GLOB ${var}-ui ${dir}/*.ui)
- file(GLOB ${var}-rc ${dir}/*.qrc)
+ file(GLOB ${var}-ui "${dir}/*.ui")
+ file(GLOB ${var}-rc "${dir}/*.qrc")
set(${var}-all ${${var}-cc} ${${var}-cxx} ${${var}-hh} ${${var}-rc} ${${var}-res})
foreach(i ui rc res cc cxx hh all)
set(${var}-${i} "${${var}-${i}}" PARENT_SCOPE)