mirror of
https://github.com/romixlab/qmsgpack.git
synced 2025-08-01 11:24:26 +02:00
Started working on Qt types packers/unpackers
QColor implemented cmake will fail with Qt4 for now
This commit is contained in:
@@ -39,6 +39,23 @@ else ()
|
||||
set(PC_Requires "QtCore")
|
||||
endif ()
|
||||
|
||||
option (QTGUI_TYPES "Build with support for QtGui types")
|
||||
if (QTGUI_TYPES)
|
||||
if (QT4_BUILD)
|
||||
find_package(Qt4 QTGUI)
|
||||
else ()
|
||||
find_package(Qt5Gui QUIET)
|
||||
endif ()
|
||||
endif ()
|
||||
|
||||
if (Qt5Gui_FOUND)
|
||||
message("Qt5Gui found")
|
||||
include_directories(${Qt5Gui_INCLUDE_DIRS})
|
||||
add_definitions(${Qt5Gui_DEFINITIONS})
|
||||
else ()
|
||||
message("Qt5Gui not found")
|
||||
endif ()
|
||||
|
||||
if (NOT WIN32)
|
||||
set(QT_DONT_USE_QTGUI TRUE)
|
||||
endif ()
|
||||
|
Reference in New Issue
Block a user