/
CMakeLists.txt
28 lines (22 loc) · 1.01 KB
/
CMakeLists.txt
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
project(gammaray-plugin-examples)
cmake_minimum_required(VERSION 3.0)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(FeatureSummary)
find_package(GammaRay 2.9.0 REQUIRED NO_MODULE)
set_package_properties(GammaRay PROPERTIES
TYPE REQUIRED
URL "http://www.kdab.com/gammaray"
DESCRIPTION "Qt introspection tool"
PURPOSE "Needed to build custom GammaRay plug-ins."
)
# more aggressive linker flags (for testing the GammaRay-provided development files for completeness)
if(CMAKE_SYSTEM_NAME MATCHES Linux OR CMAKE_SYSTEM_NAME STREQUAL GNU)
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_SHARED_LINKER_FLAGS}")
set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--fatal-warnings -Wl,--no-undefined -lc ${CMAKE_MODULE_LINKER_FLAGS}")
endif()
endif()
add_subdirectory(lcdwidgetinspector)
add_subdirectory(openglsupport)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)