diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-07 11:43:20 -0500 |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-07 11:43:20 -0500 |
commit | 9afb2100c131e24b670850634b3358d16dccf624 (patch) | |
tree | deb5244f089b2a50cb8f5df6aaf2c699044c02f9 /CMakeCPackOptions.cmake.in | |
parent | 378ca535a456197075a7063e7bd2720c2edef09d (diff) | |
download | cmake-9afb2100c131e24b670850634b3358d16dccf624.tar.gz |
ENH: for windows only allow a static qt for install and NSIS of cmake-gui
Diffstat (limited to 'CMakeCPackOptions.cmake.in')
-rw-r--r-- | CMakeCPackOptions.cmake.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeCPackOptions.cmake.in b/CMakeCPackOptions.cmake.in index 2a83e304b2..0c1eac43b1 100644 --- a/CMakeCPackOptions.cmake.in +++ b/CMakeCPackOptions.cmake.in @@ -1,4 +1,10 @@ +# This file is configured at cmake time, and loaded at cpack time. +# To pass variables to cpack from cmake, they must be configured +# in this file. + if(CPACK_GENERATOR MATCHES "NSIS") + SET(BUILD_QtDialog @BUILD_QtDialog@) + SET(CMAKE_QT_IS_STATIC @CMAKE_QT_IS_STATIC@) # set the install/unistall icon used for the installer itself # There is a bug in NSI that does not handle full unix paths properly. SET(CPACK_NSIS_MUI_ICON "@CMake_SOURCE_DIR@/Utilities/Release\\CMakeLogo.ico") @@ -27,6 +33,10 @@ if(CPACK_GENERATOR MATCHES "NSIS") SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\www.kitware.com") SET(CPACK_NSIS_CONTACT @CPACK_PACKAGE_CONTACT@) SET(CPACK_NSIS_MODIFY_PATH ON) + # only package cmake-gui if QT is static on windows + IF(BUILD_QtDialog AND CMAKE_QT_IS_STATIC) + SET(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} "cmake-gui" "cmake-gui(beta)") + ENDIF(BUILD_QtDialog AND CMAKE_QT_IS_STATIC) endif(CPACK_GENERATOR MATCHES "NSIS") if(CPACK_GENERATOR MATCHES "CygwinSource") |