mirror of
https://github.com/glest/glest-source.git
synced 2025-07-31 21:50:15 +02:00
cmake: touch up
This commit is contained in:
@@ -208,7 +208,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||
ENDIF()
|
||||
|
||||
IF(NOT INSTALL_DIR_BIN)
|
||||
SET(INSTALL_DIR_BIN "${CMAKE_INSTALL_PREFIX}/games" CACHE PATH "The installation path for binaries")
|
||||
SET(INSTALL_DIR_BIN "${CMAKE_INSTALL_PREFIX}/games/" CACHE PATH "The installation path for binaries")
|
||||
ENDIF()
|
||||
# The data dir will get defined as a macro at compile-time
|
||||
IF(NOT INSTALL_DIR_DATA)
|
||||
|
@@ -266,9 +266,7 @@ IF(BUILD_ZETAGLEST)
|
||||
TARGET_LINK_LIBRARIES(${TARGET_NAME} ${EXTERNAL_LIBS})
|
||||
|
||||
# Installation of the program
|
||||
INSTALL(TARGETS
|
||||
${TARGET_NAME}
|
||||
DESTINATION "${INSTALL_DIR_BIN}")
|
||||
INSTALL(TARGETS ${TARGET_NAME} DESTINATION "${INSTALL_DIR_BIN}")
|
||||
|
||||
# Installation of the program manpage file
|
||||
INSTALL(FILES
|
||||
@@ -303,8 +301,14 @@ IF(BUILD_ZETAGLEST)
|
||||
DESTINATION ${INSTALL_DIR_ICON})
|
||||
ENDIF()
|
||||
|
||||
# Installation of icon
|
||||
INSTALL(FILES
|
||||
"${PROJECT_SOURCE_DIR}/mk/shared/zetaglest.ico"
|
||||
DESTINATION ${INSTALL_DIR_INI})
|
||||
|
||||
# These files must be in the same directory as the zetaglest binary
|
||||
# when "make install" isn't used
|
||||
# when "make install" is NOT used.
|
||||
#
|
||||
#
|
||||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
||||
COMMAND cp "${PROJECT_SOURCE_DIR}/mk/shared/glest.ini" "${CMAKE_BINARY_DIR}"
|
||||
|
Reference in New Issue
Block a user