forked from musescore/MuseScore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
FindQt5.cmake
39 lines (37 loc) · 744 Bytes
/
FindQt5.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
set(_components
Core
Gui
#Designer
Network
Test
Qml
Quick
QuickWidgets
Xml
XmlPatterns
Svg
Sql
Widgets
PrintSupport
Concurrent
UiTools
OpenGL
LinguistTools
Help
)
if (NOT MINGW)
set(_components
${_components}
WebEngine
WebEngineCore
WebEngineWidgets)
endif()
foreach(_component ${_components})
find_package(Qt5${_component})
list(APPEND QT_LIBRARIES ${Qt5${_component}_LIBRARIES})
list(APPEND QT_INCLUDES ${Qt5${_component}_INCLUDE_DIRS})
add_definitions(${Qt5${_component}_DEFINITIONS})
endforeach()
include_directories(${QT_INCLUDES})
set(QT_INSTALL_PREFIX ${_qt5Core_install_prefix})
#add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)