Use configure_files macro for WiX
This commit is contained in:
parent
db70d56d01
commit
09935aaf6c
|
@ -364,6 +364,8 @@ endmacro (configure_files)
|
||||||
|
|
||||||
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/macos/bundle ${CMAKE_BINARY_DIR}/bundle)
|
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/macos/bundle ${CMAKE_BINARY_DIR}/bundle)
|
||||||
|
elseif(WIN32 AND NOT UNIX)
|
||||||
|
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/wix ${CMAKE_BINARY_DIR}/installer)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CONF_DOXYGEN)
|
if (CONF_DOXYGEN)
|
||||||
|
@ -375,17 +377,6 @@ if (CONF_DOXYGEN)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
|
||||||
configure_file (dist/wix/Include.wxi.in
|
|
||||||
"${CMAKE_BINARY_DIR}/dist/wix/Include.wxi" NEWLINE_STYLE WIN32)
|
|
||||||
|
|
||||||
configure_file (dist/wix/Product.wxs
|
|
||||||
"${CMAKE_BINARY_DIR}/dist/wix/Product.wxs" COPYONLY)
|
|
||||||
|
|
||||||
configure_file (dist/wix/Synergy.wixproj
|
|
||||||
"${CMAKE_BINARY_DIR}/dist/wix/Synergy.wixproj" COPYONLY)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
option(SYNERGY_BUILD_LEGACY_SERVICE "Build the legacy service (synergyd)" ON)
|
option(SYNERGY_BUILD_LEGACY_SERVICE "Build the legacy service (synergyd)" ON)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
<?define Version="1.9.0" ?> <!-- TODO: Configure this externally //-->
|
<?define Version="1.9.0" ?> <!-- TODO: Configure this externally //-->
|
||||||
<?define QtVersion="5.8" ?> <!-- TODO: Configure this externally //-->
|
<?define QtVersion="5.8" ?> <!-- TODO: Configure this externally //-->
|
||||||
<?define Author="Symless Ltd" ?>
|
<?define Author="Symless Ltd" ?>
|
||||||
<?define BinPath="${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(var.Configuration)" ?>
|
<?define BinPath="@CMAKE_RUNTIME_OUTPUT_DIRECTORY@/$(var.Configuration)" ?>
|
||||||
<?define ResPath="${CMAKE_CURRENT_SOURCE_DIR}/res" ?>
|
<?define ResPath="@CMAKE_CURRENT_SOURCE_DIR@/res" ?>
|
||||||
<?define ExtPath="${CMAKE_CURRENT_SOURCE_DIR}/ext" ?>
|
<?define ExtPath="@CMAKE_CURRENT_SOURCE_DIR@/ext" ?>
|
||||||
<?if $(var.Platform) = "x64" ?>
|
<?if $(var.Platform) = "x64" ?>
|
||||||
<?define ProgramFilesFolder="ProgramFiles64Folder" ?>
|
<?define ProgramFilesFolder="ProgramFiles64Folder" ?>
|
||||||
<?define PlatformSimpleName="64-bit" ?>
|
<?define PlatformSimpleName="64-bit" ?>
|
||||||
|
@ -26,4 +26,4 @@
|
||||||
<?define DebugCRT="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_DebugCRT_$(var.Platform).msm" ?>
|
<?define DebugCRT="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_DebugCRT_$(var.Platform).msm" ?>
|
||||||
<?endif ?>
|
<?endif ?>
|
||||||
<?define CRT="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_CRT_$(var.Platform).msm" ?>
|
<?define CRT="$(env.CommonProgramFiles)\Merge Modules\Microsoft_VC140_CRT_$(var.Platform).msm" ?>
|
||||||
</Include>
|
</Include>
|
||||||
|
|
Loading…
Reference in New Issue