Warning, /education/rkward/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 PROJECT(rkward)
0002 
0003 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)  # As required by KF5
0004 IF(NOT "${CMAKE_VERSION}" VERSION_LESS 3.3.0)
0005         CMAKE_POLICY(SET CMP0063 NEW)  # Shut up cmake warning
0006 ENDIF()
0007 
0008 IF(NOT CMAKE_VERBOSE_MAKEFILE)
0009         SET (FORCE_PRETTY_MAKEFILE ON)
0010 ENDIF(NOT CMAKE_VERBOSE_MAKEFILE)
0011 
0012 FIND_PACKAGE(ECM 0.0.11 REQUIRED NO_MODULE)
0013 
0014 SET(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
0015 
0016 INCLUDE(KDEInstallDirs)
0017 INCLUDE(KDECMakeSettings)
0018 INCLUDE(KDECompilerSettings)
0019 INCLUDE(ECMInstallIcons)
0020 INCLUDE(ECMAddAppIcon)
0021 INCLUDE(ECMMarkNonGuiExecutable)
0022 INCLUDE(FeatureSummary)
0023 
0024 FIND_PACKAGE(Qt5 5.5 CONFIG REQUIRED COMPONENTS Widgets Core Xml Network Script PrintSupport)
0025 FIND_PACKAGE(KF5 5.2 REQUIRED COMPONENTS CoreAddons DocTools I18n XmlGui TextEditor WidgetsAddons Parts Config Notifications WindowSystem Archive OPTIONAL_COMPONENTS Crash)
0026 IF(NOT NO_QT_WEBENGINE)
0027         FIND_PACKAGE(Qt5 5.5 OPTIONAL_COMPONENTS WebEngineWidgets)
0028         IF(NOT Qt5WebEngineWidgets_FOUND OR Qt5WebEngineWidgets_VERSION VERSION_LESS "5.12.0")
0029                 MESSAGE(STATUS "QWebEngine not available (or version < 5.12). Falling back to QtWebKit")
0030                 SET(NO_QT_WEBENGINE 1)
0031         ENDIF()
0032 ENDIF(NOT NO_QT_WEBENGINE)
0033 IF(NO_QT_WEBENGINE)
0034         FIND_PACKAGE(KF5 5.2 REQUIRED COMPONENTS WebKit)
0035         ADD_DEFINITIONS(-DNO_QT_WEBENGINE)  # TODO: rather set it for rkhtmlwindow, only
0036 ELSE(NO_QT_WEBENGINE)
0037         MESSAGE(STATUS "QtWebEngine will be used for rendering HTML. To use KF5WebKit, instead (if available), pass -DNO_QT_WEBENGINE=1 in your call to cmake.")
0038 ENDIF(NO_QT_WEBENGINE)
0039 FIND_PACKAGE(Gettext REQUIRED)
0040 
0041 IF(FORCE_PRETTY_MAKEFILE)
0042         SET(CMAKE_VERBOSE_MAKEFILE OFF)
0043 ENDIF(FORCE_PRETTY_MAKEFILE)
0044 
0045 ADD_DEFINITIONS(${QT_DEFINITIONS} -DQT_NO_CAST_TO_ASCII)
0046 ADD_DEFINITIONS(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0047 ADD_DEFINITIONS(-DQT_NO_URL_CAST_FROM_STRING)
0048 
0049 #uncomment the line below to save ~250-350kB in object size
0050 #ADD_DEFINITIONS(-DRKWARD_NO_TRACE)
0051 
0052 ADD_SUBDIRECTORY(rkward)
0053 ADD_SUBDIRECTORY(i18n)
0054 ADD_SUBDIRECTORY(doc)
0055 ADD_SUBDIRECTORY(tests)
0056 KI18N_INSTALL(po)
0057 KDOCTOOLS_INSTALL(po)
0058 
0059 FEATURE_SUMMARY(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)