Skip to content

Commit

Permalink
Install resources
Browse files Browse the repository at this point in the history
Install various globs and subdirectories from install/ into the corresponding
destination directories.
  • Loading branch information
Matthew Mott committed Dec 5, 2020
1 parent 7125e4c commit da46029
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,26 @@ add_subdirectory(libs/module)
add_subdirectory(radiantcore)
add_subdirectory(radiant)

# Installation
# Install built targets
install(TARGETS darkradiant math xmlutil scenegraph wxutil module
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/darkradiant)
install(TARGETS radiantcore
LIBRARY DESTINATION lib/darkradiant/modules)

# Install resources
set(PKG_DATA_DIR "${CMAKE_INSTALL_DATADIR}/darkradiant")

file(GLOB XML_FILES "${PROJECT_SOURCE_DIR}/install/*.xml")
install(FILES ${XML_FILES} DESTINATION ${PKG_DATA_DIR})

install(DIRECTORY install/games DESTINATION ${PKG_DATA_DIR})
install(DIRECTORY install/bitmaps DESTINATION ${PKG_DATA_DIR})
install(DIRECTORY install/gl DESTINATION ${PKG_DATA_DIR})
install(DIRECTORY install/ui DESTINATION ${PKG_DATA_DIR}
FILES_MATCHING PATTERN "*.ttf" PATTERN "*.xrc")

# Install scripts
set(PKG_LIB_DIR "${CMAKE_INSTALL_LIBDIR}/darkradiant")
install(DIRECTORY install/scripts DESTINATION ${PKG_LIB_DIR}
FILES_MATCHING PATTERN "*.py")

0 comments on commit da46029

Please sign in to comment.