1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-25 11:52:40 +01:00

CMake: Add BIN_DIR and DOC_DIR (#165)

* CMake: Add BIN_DIR and DOC_DIR

* CMake: Fix typo
This commit is contained in:
orbea 2016-06-29 14:19:03 -07:00 committed by Daniel Evans
parent 63711a55ab
commit 27c6334cb1
4 changed files with 12 additions and 4 deletions

View File

@ -60,6 +60,14 @@ else()
add_definitions(-DRW_VERBOSE_DEBUG_MESSAGES=0)
endif()
if(NOT DEFINED BIN_DIR)
set(BIN_DIR "bin" CACHE PATH "BIN_DIR")
endif()
if(NOT DEFINED DOC_DIR)
set(DOC_DIR "share/doc/openrw" CACHE PATH "DOC_DIR")
endif()
# Find dependancies
IF(APPLE)
set(OPENRW_PLATFORM_LIBS iconv)
@ -106,7 +114,7 @@ ENDIF()
# Copy License file to install directory
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux|FreeBSD")
install(FILES COPYING
DESTINATION share/openrw
DESTINATION "${DOC_DIR}"
)
endif()
# And copy to build directory for CI

View File

@ -36,4 +36,4 @@ target_link_libraries(rwgame
${SDL2_LIBRARY}
)
install(TARGETS rwgame RUNTIME DESTINATION bin)
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")

View File

@ -34,4 +34,4 @@ target_link_libraries(rwviewer
${BULLET_LIBRARIES})
qt5_use_modules(rwviewer Widgets OpenGL)
install(TARGETS rwviewer RUNTIME DESTINATION bin)
install(TARGETS rwviewer RUNTIME DESTINATION "${BIN_DIR}")

View File

@ -9,4 +9,4 @@ ${OPENGL_LIBRARIES}
${BULLET_LIBRARIES}
${SDL2_LIBRARY})
install(TARGETS ${SCRIPTTOOL} RUNTIME DESTINATION bin)
install(TARGETS ${SCRIPTTOOL} RUNTIME DESTINATION "${BIN_DIR}")