From 646fbbbef1f70fec0e1717b7993a4c2b4c5bac2f Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer <bjorn@lindeijer.nl> Date: Wed, 17 Jul 2024 10:37:37 +0200 Subject: 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. --- CMakeLists.txt | 9 ++++++--- 1 file 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") -- cgit v1.2.3-70-g09d2