diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-07 16:43:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-02-07 16:43:20 (GMT) |
commit | 9afb2100c131e24b670850634b3358d16dccf624 (patch) | |
tree | deb5244f089b2a50cb8f5df6aaf2c699044c02f9 /Source/QtDialog/CMakeLists.txt | |
parent | 378ca535a456197075a7063e7bd2720c2edef09d (diff) | |
download | CMake-9afb2100c131e24b670850634b3358d16dccf624.zip CMake-9afb2100c131e24b670850634b3358d16dccf624.tar.gz CMake-9afb2100c131e24b670850634b3358d16dccf624.tar.bz2 |
ENH: for windows only allow a static qt for install and NSIS of cmake-gui
Diffstat (limited to 'Source/QtDialog/CMakeLists.txt')
-rw-r--r-- | Source/QtDialog/CMakeLists.txt | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/QtDialog/CMakeLists.txt b/Source/QtDialog/CMakeLists.txt index 9ed469e..6576539 100644 --- a/Source/QtDialog/CMakeLists.txt +++ b/Source/QtDialog/CMakeLists.txt @@ -7,7 +7,9 @@ IF(NOT QT4_FOUND) ELSE(NOT QT4_FOUND) INCLUDE(${QT_USE_FILE}) - + IF(QT_CONFIG MATCHES "static") + SET(CMAKE_QT_IS_STATIC TRUE CACHE STATIC "") + ENDIF(QT_CONFIG MATCHES "static") SET(SRCS AddCacheEntry.cxx AddCacheEntry.h @@ -47,8 +49,14 @@ ELSE(NOT QT4_FOUND) ADD_EXECUTABLE(cmake-gui WIN32 MACOSX_BUNDLE ${SRCS}) TARGET_LINK_LIBRARIES(cmake-gui CMakeLib ${QT_QTMAIN_LIBRARY} ${QT_LIBRARIES}) - - INSTALL_TARGETS(/bin cmake-gui) + # if qt is not static and we are on windows then skip the install + # I don't want to distribute qt dlls + IF(WIN32 AND NOT CMAKE_QT_IS_STATIC) + SET(SKIP_INSTALL TRUE) + ENDIF(WIN32 AND NOT CMAKE_QT_IS_STATIC) + IF(NOT SKIP_INSTALL) + INSTALL_TARGETS(/bin cmake-gui) + ENDIF(NOT SKIP_INSTALL) ENDIF(NOT QT4_FOUND) |