mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
Exclude directories correctly
We don't need `/*` as we don't want the directory itself, not just its contents. We also need to list possible other directories explicitly as there's currently no way to skip directories without matches. It would be much nicer if CMake was tracking the DLLs we needed for us.
This commit is contained in:
parent
73708a6f2a
commit
be5fd6fd03
@ -508,8 +508,24 @@ if(WIN32)
|
||||
SET(INSTALL_SOURCE "${OpenMW_BINARY_DIR}")
|
||||
endif ()
|
||||
|
||||
INSTALL(DIRECTORY "${INSTALL_SOURCE}/" DESTINATION "." FILES_MATCHING PATTERN "*.dll" EXCLUDE "deps/*")
|
||||
INSTALL(DIRECTORY "${INSTALL_SOURCE}/" DESTINATION "." CONFIGURATIONS Debug;RelWithDebInfo FILES_MATCHING PATTERN "*.pdb" EXCLUDE "deps/*")
|
||||
INSTALL(DIRECTORY "${INSTALL_SOURCE}/" DESTINATION "." FILES_MATCHING PATTERN "*.dll"
|
||||
PATTERN "deps" EXCLUDE
|
||||
PATTERN "apps" EXCLUDE
|
||||
PATTERN "CMakeFiles" EXCLUDE
|
||||
PATTERN "components" EXCLUDE
|
||||
PATTERN "docs" EXCLUDE
|
||||
PATTERN "extern" EXCLUDE
|
||||
PATTERN "files" EXCLUDE
|
||||
PATTERN "Testing" EXCLUDE)
|
||||
INSTALL(DIRECTORY "${INSTALL_SOURCE}/" DESTINATION "." CONFIGURATIONS Debug;RelWithDebInfo FILES_MATCHING PATTERN "*.pdb"
|
||||
PATTERN "deps" EXCLUDE
|
||||
PATTERN "apps" EXCLUDE
|
||||
PATTERN "CMakeFiles" EXCLUDE
|
||||
PATTERN "components" EXCLUDE
|
||||
PATTERN "docs" EXCLUDE
|
||||
PATTERN "extern" EXCLUDE
|
||||
PATTERN "files" EXCLUDE
|
||||
PATTERN "Testing" EXCLUDE)
|
||||
INSTALL(FILES "${INSTALL_SOURCE}/openmw.cfg.install" DESTINATION "." RENAME "openmw.cfg")
|
||||
INSTALL(FILES "${OpenMW_SOURCE_DIR}/CHANGELOG.md" DESTINATION "." RENAME "CHANGELOG.txt")
|
||||
INSTALL(FILES "${OpenMW_SOURCE_DIR}/README.md" DESTINATION "." RENAME "README.txt")
|
||||
|
Loading…
x
Reference in New Issue
Block a user