summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-12 13:09:47 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-12 13:09:47 (GMT)
commit4dabf40ce353afb6d10564e143f92683ef44edf0 (patch)
tree7f94835f059396a139d47b69e6c2bbc920c97ba9
parentf52977a9f79bcc4e9a7f6edd099a9e06c71b8b25 (diff)
downloadCMake-4dabf40ce353afb6d10564e143f92683ef44edf0.zip
CMake-4dabf40ce353afb6d10564e143f92683ef44edf0.tar.gz
CMake-4dabf40ce353afb6d10564e143f92683ef44edf0.tar.bz2
ENH: add -D options for qt stuff
-rw-r--r--Modules/UseQt4.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/UseQt4.cmake b/Modules/UseQt4.cmake
index a5c8352..2671bb7 100644
--- a/Modules/UseQt4.cmake
+++ b/Modules/UseQt4.cmake
@@ -15,6 +15,7 @@ SET(QT_LIBRARIES "")
IF (NOT QT_DONT_USE_QTCORE)
IF (QT_QTCORE_FOUND)
INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR})
+ ADD_DEFINITIONS(-DQT_CORE_LIB)
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
SET(QT_LIBRARIES ${QT_LIBRARIES}
optimized "${QT_QTCORE_LIBRARY}"
@@ -36,6 +37,7 @@ ENDIF (NOT QT_DONT_USE_QTCORE)
IF (NOT QT_DONT_USE_QTGUI)
IF (QT_QTGUI_FOUND)
INCLUDE_DIRECTORIES(${QT_QTGUI_INCLUDE_DIR})
+ ADD_DEFINITIONS(-DQT_GUI_LIB)
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
SET(QT_LIBRARIES ${QT_LIBRARIES}
optimized "${QT_QTGUI_LIBRARY}"
@@ -122,6 +124,7 @@ ENDIF (QT_USE_QTMOTIF)
IF (QT_USE_QTNETWORK)
IF (QT_QTNETWORK_FOUND)
INCLUDE_DIRECTORIES(${QT_QTNETWORK_INCLUDE_DIR})
+ ADD_DEFINITIONS(-DQT_NETWORK_LIB)
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
SET(QT_LIBRARIES ${QT_LIBRARIES}
optimized "${QT_QTNETWORK_LIBRARY}"
@@ -154,6 +157,7 @@ ENDIF (QT_USE_QTNSPLUGIN)
IF (QT_USE_QTOPENGL)
IF (QT_QTOPENGL_FOUND)
INCLUDE_DIRECTORIES(${QT_QTOPENGL_INCLUDE_DIR})
+ ADD_DEFINITIONS(-DQT_OPENGL_LIB)
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
SET(QT_LIBRARIES ${QT_LIBRARIES}
optimized "${QT_QTOPENGL_LIBRARY}"
@@ -170,6 +174,7 @@ ENDIF (QT_USE_QTOPENGL)
IF (QT_USE_QTSQL)
IF (QT_QTSQL_FOUND)
INCLUDE_DIRECTORIES(${QT_QTSQL_INCLUDE_DIR})
+ ADD_DEFINITIONS(-DQT_SQL_LIB)
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
SET(QT_LIBRARIES ${QT_LIBRARIES}
optimized "${QT_QTSQL_LIBRARY}"
@@ -186,6 +191,7 @@ ENDIF (QT_USE_QTSQL)
IF (QT_USE_QTXML)
IF (QT_QTXML_FOUND)
INCLUDE_DIRECTORIES(${QT_QTXML_INCLUDE_DIR})
+ ADD_DEFINITIONS(-DQT_XML_LIB)
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
SET(QT_LIBRARIES ${QT_LIBRARIES}
optimized "${QT_QTXML_LIBRARY}"
@@ -198,3 +204,4 @@ IF (QT_USE_QTXML)
MESSAGE("QtXml library not found.")
ENDIF (QT_QTXML_FOUND)
ENDIF (QT_USE_QTXML)
+