14bbbdcb |
1 | #qt |
2 | |
4f4b8935 |
3 | #looking for 3RDPARTY_QT_DIR variable used later in qt_macro.cmake |
4 | SET(CSF_QtCore "QtCore") |
5 | THIRDPARTY_PRODUCT("QT" "" "CSF_QtCore" "d") |
6 | |
7 | list (APPEND 3RDPARTY_DLL_DIRS "${3RDPARTY_QT_DIR}/bin") |
14bbbdcb |
8 | |
9 | list (REMOVE_ITEM 3RDPARTY_NOT_INCLUDED "3RDPARTY_QT_INCLUDE_DIR") |
0553a8ea |
10 | list (REMOVE_ITEM 3RDPARTY_NO_LIBS "3RDPARTY_QT_LIBRARY_DIR") |
11 | list (REMOVE_ITEM 3RDPARTY_NO_DLLS "3RDPARTY_QT_DLL_DIR") |
14bbbdcb |
12 | |
13 | UNSET (${3RDPARTY_QT_DLL} CACHE) |
14 | UNSET (${3RDPARTY_QT_DLL_DIR} CACHE) |
15 | UNSET (${3RDPARTY_QT_INCLUDE_DIR} CACHE) |
16 | UNSET (${3RDPARTY_QT_LIBRARY} CACHE) |
17 | UNSET (${3RDPARTY_QT_LIBRARY_DIR} CACHE) |
18 | |
19 | set (USED_3RDPARTY_QT_DIR "${3RDPARTY_QT_DIR}") |
4f4b8935 |
20 | message (STATUS "Info: Qt is used from folder: ${3RDPARTY_QT_DIR}") |
41ea50ac |
21 | |
22 | # Now set CMAKE_PREFIX_PATH to point to local Qt installation. |
23 | # Without this setting find_package() will not work |
24 | set(CMAKE_PREFIX_PATH ${3RDPARTY_QT_DIR}) |
25 | |
26 | # Now we can apply standard CMake finder for Qt5. We do this mostly |
27 | # to have qt5_wrap_cpp() function available and Qt5_FOUND variable filled |
28 | find_package(Qt5 QUIET COMPONENTS Widgets Quick PATHS ${3RDPARTY_QT_DIR} NO_DEFAULT_PATH) |
29 | if (NOT ${Qt5_FOUND}) |
30 | # Now we can apply standard CMake finder for Qt. We do this mostly |
31 | # to have qt4_wrap_cpp() function available |
32 | find_package(Qt4) |
33 | #message (STATUS "Qt4 cmake configuration") |
34 | else() |
35 | #message (STATUS "Qt5 cmake configuration") |
36 | endif() |