Can create nitpick installer.

This commit is contained in:
NissimHadar 2019-01-10 15:37:23 -08:00
parent 331cc21ef1
commit 524a8e54e0
2 changed files with 19 additions and 0 deletions

View file

@ -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 ".")

View file

@ -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()