From 4dabf40ce353afb6d10564e143f92683ef44edf0 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 12 Sep 2005 09:09:47 -0400 Subject: ENH: add -D options for qt stuff --- Modules/UseQt4.cmake | 7 +++++++ 1 file changed, 7 insertions(+) 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) + -- cgit v0.12