Files
watrbx-game-engine/cmake/Modules/IncludeProjectFiles.cmake
T
2025-09-18 17:55:52 -04:00

11 lines
474 B
CMake

# Will not be built, but it will list all project files in the IDE.
# - target: Name of a ${target}_unbuilt that will be created.
# - regexes: Patterns of files to find. May even be paths.
macro( INCLUDE_PROJECT_FILES target path_globs )
foreach(path_glob ${path_globs})
file(GLOB_RECURSE _hdrs "${path_glob}")
list(APPEND _INCLUDE_PROJECT_HEADERS "${_hdrs}")
endforeach()
add_custom_target("${target}_unbuilt" SOURCES ${_INCLUDE_PROJECT_HEADERS})
endmacro()