mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
install scripts beside interface executable
This commit is contained in:
parent
24450517fa
commit
876d36c2d3
1 changed files with 13 additions and 0 deletions
|
@ -217,6 +217,8 @@ if (APPLE)
|
||||||
COMPONENT ${CLIENT_COMPONENT}
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(SCRIPTS_INSTALL_DIR "${INTERFACE_INSTALL_APP_PATH}/Contents/Resources")
|
||||||
|
|
||||||
else (APPLE)
|
else (APPLE)
|
||||||
# copy the resources files beside the executable
|
# copy the resources files beside the executable
|
||||||
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
add_custom_command(TARGET ${TARGET_NAME} POST_BUILD
|
||||||
|
@ -239,12 +241,23 @@ else (APPLE)
|
||||||
COMPONENT ${CLIENT_COMPONENT}
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set(SCRIPTS_INSTALL_DIR "${INTERFACE_INSTALL_DIR}")
|
||||||
|
|
||||||
set(EXECUTABLE_COMPONENT ${CLIENT_COMPONENT})
|
set(EXECUTABLE_COMPONENT ${CLIENT_COMPONENT})
|
||||||
|
|
||||||
optional_win_executable_signing()
|
optional_win_executable_signing()
|
||||||
endif()
|
endif()
|
||||||
endif (APPLE)
|
endif (APPLE)
|
||||||
|
|
||||||
|
if (SCRIPTS_INSTALL_DIR)
|
||||||
|
# setup install of scripts beside interface executable
|
||||||
|
install(
|
||||||
|
DIRECTORY "${CMAKE_SOURCE_DIR}/examples/"
|
||||||
|
DESTINATION ${SCRIPTS_INSTALL_DIR}/scripts
|
||||||
|
COMPONENT ${CLIENT_COMPONENT}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# call the fixup_interface macro to add required bundling commands for installation
|
# call the fixup_interface macro to add required bundling commands for installation
|
||||||
fixup_interface()
|
fixup_interface()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue