File: cmake-qt5.txt

package info (click to toggle)
mathgl 2.4.4-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 34,092 kB
  • sloc: cpp: 82,288; javascript: 3,284; ansic: 3,178; pascal: 1,562; python: 37; makefile: 20; sh: 20
file content (22 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(MGL_HAVE_QT5 1)

macro(find_qt5_libs qt5_lib_req qt5_lib_add)
	foreach(mgl_qt5_lib ${ARGN})
		find_package(Qt5${mgl_qt5_lib} QUIET)
		if(NOT Qt5${mgl_qt5_lib}_FOUND)
			if(${qt5_lib_req})
				message(SEND_ERROR "Couldn't find Qt5 ${mgl_qt5_lib} library.")
			endif(${qt5_lib_req})
		else(NOT Qt5${mgl_qt5_lib}_FOUND)
			if(${qt5_lib_add})
				set(MGL_QT5_LIBS ${MGL_QT5_LIBS} Qt5::${mgl_qt5_lib})
			endif(${qt5_lib_add})
		endif(NOT Qt5${mgl_qt5_lib}_FOUND)
	endforeach(mgl_qt5_lib)
endmacro(find_qt5_libs qt5_lib_req)

find_qt5_libs(ON ON Core Gui Widgets PrintSupport OpenGL)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)