Allow install config to be turned off

This commit is contained in:
Andrew Nelless 2017-03-13 12:21:02 +00:00
parent b3f606daee
commit 03447ffd64
1 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,7 @@ cmake_minimum_required (VERSION 3.4)
project (synergy C CXX)
option (SYNERGY_BUILD_LEGACY_SERVICE "Build the legacy service (synergyd)" ON)
option (SYNERGY_BUILD_LEGACY_INSTALLER "Build the installer" ON)
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
@ -351,6 +352,11 @@ macro (configure_files srcDir destDir)
endforeach (templateFile)
endmacro (configure_files)
message (STATUS "SYNERGY_BUILD_LEGACY_INSTALLER = " ${SYNERGY_BUILD_LEGACY_INSTALLER})
if (${SYNERGY_BUILD_LEGACY_INSTALLER})
message (STATUS "Configuring the v1 installer")
#
# macOS app Bundle
#
@ -372,4 +378,8 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer)
endif()
else()
message (STATUS "NOT configuring the v1 installer")
endif()
add_subdirectory (src)