mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-07 10:02:24 +02:00
Can create nitpick installer.
This commit is contained in:
parent
331cc21ef1
commit
524a8e54e0
2 changed files with 19 additions and 0 deletions
|
@ -162,8 +162,10 @@ macro(SET_PACKAGING_PARAMETERS)
|
|||
else ()
|
||||
if (WIN32)
|
||||
set(CONSOLE_INSTALL_DIR "server-console")
|
||||
set(NITPICK_INSTALL_DIR "nitpick")
|
||||
else ()
|
||||
set(CONSOLE_INSTALL_DIR ".")
|
||||
set(NITPICK_INSTALL_DIR ".")
|
||||
endif ()
|
||||
|
||||
set(COMPONENT_INSTALL_DIR ".")
|
||||
|
|
|
@ -73,3 +73,20 @@ elseif (APPLE)
|
|||
)
|
||||
endif ()
|
||||
|
||||
# set the packaged console folder depending on platform, so we can copy it
|
||||
if (WIN32)
|
||||
set(PACKAGED_NITPICK_FOLDER "Release")
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
set(NITPICK_DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/${PACKAGED_NITPICK_FOLDER}")
|
||||
|
||||
install(
|
||||
DIRECTORY "${NITPICK_DESTINATION}/"
|
||||
DESTINATION ${NITPICK_INSTALL_DIR}
|
||||
)
|
||||
|
||||
# sign the copied server console executable after install
|
||||
set(EXECUTABLE_PATH "${NITPICK_DESTINATION}/${NITPICK_EXEC_NAME}")
|
||||
optional_win_executable_signing()
|
||||
endif()
|
Loading…
Reference in a new issue