mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 23:33:34 +02:00
use file install for win/linux console
This commit is contained in:
parent
31f5b1d902
commit
9bc381ce7b
1 changed files with 13 additions and 5 deletions
|
@ -23,11 +23,19 @@ elseif (UNIX)
|
|||
endif ()
|
||||
|
||||
# install the packaged Server Console
|
||||
install(
|
||||
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_CONSOLE_FOLDER}"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${SERVER_COMPONENT}
|
||||
)
|
||||
if (APPLE)
|
||||
install(
|
||||
PROGRAMS "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_CONSOLE_FOLDER}"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${SERVER_COMPONENT}
|
||||
)
|
||||
else ()
|
||||
install(
|
||||
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_CONSOLE_FOLDER}/"
|
||||
DESTINATION ${CONSOLE_INSTALL_DIR}
|
||||
COMPONENT ${SERVER_COMPONENT}
|
||||
)
|
||||
endif()
|
||||
|
||||
if (NOT PR_BUILD AND NOT PRODUCTION_BUILD)
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES EXCLUDE_FROM_ALL TRUE EXCLUDE_FROM_DEFAULT_BUILD TRUE)
|
||||
|
|
Loading…
Reference in a new issue