You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.2 KiB
52 lines
1.2 KiB
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 0d42d04a..241d7f6f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -750,28 +750,41 @@ if (NOT APPLE AND UNIX)
|
|
)
|
|
endif()
|
|
|
|
- install(DIRECTORY
|
|
+
|
|
+ if (EXISTS books)
|
|
+
|
|
+ install(DIRECTORY
|
|
${CMAKE_SOURCE_DIR}/books
|
|
${CMAKE_SOURCE_DIR}/data
|
|
${CMAKE_SOURCE_DIR}/fonts
|
|
${CMAKE_SOURCE_DIR}/images
|
|
${CMAKE_SOURCE_DIR}/items
|
|
- ${CMAKE_SOURCE_DIR}/lang
|
|
${CMAKE_SOURCE_DIR}/maps
|
|
${CMAKE_SOURCE_DIR}/models
|
|
${CMAKE_SOURCE_DIR}/music
|
|
${CMAKE_SOURCE_DIR}/sound
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}"
|
|
- )
|
|
+ )
|
|
|
|
- install(FILES
|
|
+ install(FILES
|
|
${CMAKE_SOURCE_DIR}/steam_appid.txt
|
|
+ DESTINATION "${CMAKE_INSTALL_PREFIX}"
|
|
+ )
|
|
+ endif()
|
|
+
|
|
+ install(DIRECTORY
|
|
+ ${CMAKE_SOURCE_DIR}/lang
|
|
+ DESTINATION "${CMAKE_INSTALL_PREFIX}"
|
|
+ )
|
|
+
|
|
+ install(FILES
|
|
${CMAKE_SOURCE_DIR}/gamecontrollerdb.txt
|
|
${CMAKE_SOURCE_DIR}/playernames-female.txt
|
|
${CMAKE_SOURCE_DIR}/playernames-male.txt
|
|
#TYPE INCLUDE # If your CMAKE is stupid like mine and it complains about "install FILES given no DESTINATION!", you can tell it to shove it by uncommenting this line.
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}"
|
|
- )
|
|
+ )
|
|
+
|
|
endif()
|
|
# 2) Windows install targets
|
|
if (WIN32)
|