mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
cmake: Add DATA_EXCLUDE_REGEX variable to configure exclusions in data dir installation
This commit is contained in:
parent
6d6112e12e
commit
e0192420f6
1 changed files with 6 additions and 1 deletions
|
@ -20,12 +20,17 @@ if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID)
|
|||
endif(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBSUPERDERPY_GAMENAME}.6)
|
||||
endif(UNIX AND NOT APPLE AND NOT EMSCRIPTEN AND NOT ANDROID)
|
||||
|
||||
if (NOT DATA_EXCLUDE_REGEX)
|
||||
set(DATA_EXCLUDE_REGEX "^$")
|
||||
endif()
|
||||
|
||||
install(DIRECTORY . DESTINATION ${DATADIR}
|
||||
PATTERN "stuff" EXCLUDE
|
||||
PATTERN ".git" EXCLUDE
|
||||
PATTERN ".gitignore" EXCLUDE
|
||||
PATTERN ".directory" EXCLUDE
|
||||
PATTERN "CMakeLists.txt" EXCLUDE)
|
||||
PATTERN "CMakeLists.txt" EXCLUDE
|
||||
REGEX "${DATA_EXCLUDE_REGEX}" EXCLUDE)
|
||||
|
||||
file(GLOB_RECURSE RES_FILES CONFIGURE_DEPENDS *)
|
||||
add_custom_target(data SOURCES ${RES_FILES})
|
||||
|
|
Loading…
Reference in a new issue