mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
11 lines
474 B
CMake
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()
|