summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-07-17 10:37:37 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-10-15 15:19:32 +0200
commit646fbbbef1f70fec0e1717b7993a4c2b4c5bac2f (patch)
treee23db83227745e6efb7783a1e106bb02636ca853
parentcc5d5d93a1019e1bfd3b327b896368a6dfd544d8 (diff)
downloadtmwa-646fbbbef1f70fec0e1717b7993a4c2b4c5bac2f.tar.gz
tmwa-646fbbbef1f70fec0e1717b7993a4c2b4c5bac2f.tar.bz2
tmwa-646fbbbef1f70fec0e1717b7993a4c2b4c5bac2f.tar.xz
tmwa-646fbbbef1f70fec0e1717b7993a4c2b4c5bac2f.zip
CMake: Include hpp and tcc files in sources list
This shouldn't affect the build, but it does make sure that these header files are recognized as part of the project by IDEs. Also removed 'strtest' from the list since there is no such directory.
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79413ee..16e251c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,11 +50,14 @@ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
)
# Search through the tree for sources
-# For each subfolder in src, add all .cpp files to a subfolder's SOURCES
+# For each subfolder in src, add all .cpp, .hpp and .tcc files to a subfolder's SOURCES
# variable.
set(ALL_SOURCES "")
-foreach(dir admin ast char compat conf generic high ints io login map mmo net proto-base range sexpr shared strings tests wire strtest)
- file(GLOB_RECURSE ${dir}_SOURCES CONFIGURE_DEPENDS src/${dir}/*.cpp)
+foreach(dir admin ast char compat conf generic high ints io login map mmo net proto-base range sexpr shared strings tests wire)
+ file(GLOB_RECURSE ${dir}_SOURCES CONFIGURE_DEPENDS
+ src/${dir}/*.cpp
+ src/${dir}/*.hpp
+ src/${dir}/*.tcc)
# Exclude any _test.cpp files from the build
set(ALL_SOURCES ${ALL_SOURCES} ${${dir}_SOURCES})
list(FILTER ${dir}_SOURCES EXCLUDE REGEX ".*_test.cpp")