Install macOS binaries in to bundle
This commit is contained in:
parent
8d8d4d600e
commit
20948522ea
|
@ -371,17 +371,19 @@ macro(configure_files srcDir destDir)
|
|||
message (STATUS "Configuring file ${templateFile}")
|
||||
configure_file (${sourceTemplateFilePath} ${destDir}/${templateFile} @ONLY)
|
||||
endforeach (templateFile)
|
||||
|
||||
endmacro (configure_files)
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/macos/bundle ${CMAKE_BINARY_DIR}/bundle)
|
||||
include (BundleUtilities)
|
||||
verify_app (${CMAKE_BINARY_DIR}/bundle/Synergy.app)
|
||||
set (SYNERGY_BUNDLE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dist/macos/bundle)
|
||||
set (SYNERGY_BUNDLE_DIR ${CMAKE_BINARY_DIR}/bundle)
|
||||
set (SYNERGY_BUNDLE_APP_DIR ${SYNERGY_BUNDLE_DIR}/Synergy.app)
|
||||
set (SYNERGY_BUNDLE_BINARY_DIR ${SYNERGY_BUNDLE_APP_DIR}/Contents/MacOS)
|
||||
|
||||
configure_files (${SYNERGY_BUNDLE_SOURCE_DIR} ${SYNERGY_BUNDLE_DIR})
|
||||
elseif(WIN32 AND NOT UNIX)
|
||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer)
|
||||
endif()
|
||||
|
||||
option(SYNERGY_BUILD_LEGACY_SERVICE "Build the legacy service (synergyd)" ON)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
|
|
|
@ -60,12 +60,6 @@ add_executable(synergyc ${sources})
|
|||
target_link_libraries(synergyc
|
||||
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
||||
|
||||
if (WIN32)
|
||||
else ()
|
||||
if (CONF_CPACK)
|
||||
install(TARGETS
|
||||
synergyc
|
||||
COMPONENT core
|
||||
DESTINATION bin)
|
||||
endif()
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
install (TARGETS synergyc DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
|
||||
endif()
|
||||
|
|
|
@ -60,12 +60,7 @@ add_executable(synergys ${sources})
|
|||
target_link_libraries(synergys
|
||||
arch base client common io mt net ipc platform server synlib ${libs} ${OPENSSL_LIBS})
|
||||
|
||||
if (WIN32)
|
||||
else ()
|
||||
if (CONF_CPACK)
|
||||
install(TARGETS
|
||||
synergys
|
||||
COMPONENT core
|
||||
DESTINATION bin)
|
||||
endif()
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
install (TARGETS synergys DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
|
||||
endif()
|
||||
|
||||
|
|
|
@ -31,12 +31,6 @@ add_executable(syntool ${sources})
|
|||
target_link_libraries(syntool
|
||||
synlib arch base client common io ipc mt net platform server ${libs} ${OPENSSL_LIBS})
|
||||
|
||||
if (WIN32)
|
||||
else ()
|
||||
if (CONF_CPACK)
|
||||
install(TARGETS
|
||||
syntool
|
||||
COMPONENT core
|
||||
DESTINATION bin)
|
||||
endif()
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
install (TARGETS syntool DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
|
||||
endif()
|
||||
|
|
|
@ -38,3 +38,7 @@ if (WIN32)
|
|||
target_link_libraries (synergy ${DNSSD_LIB})
|
||||
set_target_properties (synergy PROPERTIES LINK_FLAGS "/NODEFAULTLIB:LIBCMT")
|
||||
endif()
|
||||
|
||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
install (TARGETS synergy DESTINATION ${SYNERGY_BUNDLE_BINARY_DIR})
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue