File: cmake-qt5.txt

package info (click to toggle)
mathgl 8.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 248,044 kB
  • sloc: cpp: 87,365; ansic: 3,299; javascript: 3,284; pascal: 1,562; python: 52; sh: 51; makefile: 47; f90: 22
file content (22 lines) | stat: -rw-r--r-- 662 bytes parent folder | download | duplicates (5)
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)