mirror of
https://github.com/reactos/CMake.git
synced 2025-01-22 03:16:03 +00:00
ENH: add -D options for qt stuff
This commit is contained in:
parent
f52977a9f7
commit
4dabf40ce3
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user