Started working on Qt types packers/unpackers

QColor implemented
cmake will fail with Qt4 for now
This commit is contained in:
Roman
2015-04-11 22:11:44 +03:00
parent 8e3dc57316
commit e7c0ee2387
9 changed files with 189 additions and 10 deletions

View File

@@ -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 ()