added Qt5 loading, not tested

This commit is contained in:
Lendemor 2016-03-08 19:31:22 +01:00
parent 71027babe1
commit 51067bc46a

View File

@ -15,10 +15,9 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
configure_file (
"SparrowConfig.h.in"
"${PROJECT_BINARY_DIR}/Config.h"
"${PROJECT_BINARY_DIR}/Version.h"
)
#detect system and version
if(WIN32)
set(LIB_DEBUG_FOLDER "libDebug/mingw32")
@ -172,10 +171,20 @@ endif()
# TODO: Complete QT5
if(USE_QT5)
if(${QT_MODULE} MATCHES "core")
find_package(Qt5Core REQUIRED)
if(QT5CORE_FOUND)
LIST(APPEND LIB_DEPENDENCIES_LIST ${Qt5Core_LIBRARIES})
add_definitions(${Qt5Core_DEFINITIONS})
LIST(APPEND INCLUDES_PATHS "\n" ${Qt5Core_INCLUDES})
endif()
endif()
if(${QT_MODULE} MATCHES "gui")
find_package(Qt5Gui REQUIRED)
if(QT5GUI_FOUND)
LIST(APPEND LIB_DEPENDENCIES_LIST ${Qt5Gui_LIBRARIES})
add_definitions(${Qt5Gui_DEFINITIONS})
LIST(APPEND INCLUDES_PATHS "\n" ${Qt5Gui_INCLUDES})
endif()
endif()
if(${QT_MODULE} MATCHES "opengl")
find_package(Qt5OpenGL REQUIRED)
@ -194,7 +203,12 @@ if(USE_QT5)
endif()
endif()
if(${QT_MODULE} MATCHES "network")
find_package(Qt5Network REQUIRED)
if(QT5NETWORK_FOUND)
LIST(APPEND LIB_DEPENDENCIES_LIST ${Qt5Network_LIBRARIES})
add_definitions(${Qt5Network_DEFINITIONS})
LIST(APPEND INCLUDES_PATHS "\n" ${Qt5Network_INCLUDES})
endif()
endif()
endif()