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:
parent
63711a55ab
commit
27c6334cb1
@ -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
|
||||
|
@ -36,4 +36,4 @@ target_link_libraries(rwgame
|
||||
${SDL2_LIBRARY}
|
||||
)
|
||||
|
||||
install(TARGETS rwgame RUNTIME DESTINATION bin)
|
||||
install(TARGETS rwgame RUNTIME DESTINATION "${BIN_DIR}")
|
||||
|
@ -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}")
|
||||
|
@ -9,4 +9,4 @@ ${OPENGL_LIBRARIES}
|
||||
${BULLET_LIBRARIES}
|
||||
${SDL2_LIBRARY})
|
||||
|
||||
install(TARGETS ${SCRIPTTOOL} RUNTIME DESTINATION bin)
|
||||
install(TARGETS ${SCRIPTTOOL} RUNTIME DESTINATION "${BIN_DIR}")
|
||||
|
Loading…
Reference in New Issue
Block a user