Warning, /games/ksudoku/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 cmake_minimum_required (VERSION 3.16 FATAL_ERROR)
0002 
0003 set (RELEASE_SERVICE_VERSION_MAJOR "22")
0004 set (RELEASE_SERVICE_VERSION_MINOR "11")
0005 set (RELEASE_SERVICE_VERSION_MICRO "70")
0006 set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
0007 set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
0008 
0009 project(ksudoku VERSION "1.4.${RELEASE_SERVICE_COMPACT_VERSION}")
0010 
0011 set (QT_MIN_VERSION "5.15.0")
0012 set (KF5_MIN_VERSION "5.90.0")
0013 
0014 find_package(ECM ${KF5_MIN_VERSION} REQUIRED CONFIG)
0015 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
0016 
0017 include(KDEInstallDirs)
0018 include(KDECMakeSettings)
0019 include(KDECompilerSettings NO_POLICY_SCOPE)
0020 
0021 include(FeatureSummary)
0022 include(ECMAddAppIcon)
0023 include(ECMQtDeclareLoggingCategory)
0024 include(ECMInstallIcons)
0025 include(ECMSetupVersion)
0026 
0027 find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS
0028     Widgets
0029     PrintSupport
0030     Svg
0031 )
0032 
0033 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0034     Archive
0035     Config
0036     ConfigWidgets
0037     CoreAddons
0038     Crash
0039     DocTools
0040     GuiAddons
0041     I18n
0042     KIO
0043     JobWidgets
0044     WidgetsAddons
0045     XmlGui
0046 )
0047 
0048 find_package(KF5KDEGames 4.9.0 REQUIRED)
0049 
0050 find_package(Qt${QT_MAJOR_VERSION}OpenGL ${QT_MIN_VERSION})
0051 find_package(OpenGL)
0052 set_package_properties(OpenGL PROPERTIES DESCRIPTION "API for developing portable, interactive 2D and 3Dgraphics applications" TYPE OPTIONAL PURPOSE "KSudoku will not have Roxdoku support without OpenGL.")
0053 
0054 
0055 add_definitions(
0056     -DQT_DEPRECATED_WARNINGS_SINCE=0x060000
0057     -DKF_DEPRECATED_WARNINGS_SINCE=0x060000
0058 )
0059 if (Qt${QT_MAJOR_VERSION}OpenGL_FOUND AND OPENGL_FOUND AND OPENGL_GLU_FOUND)
0060     set(OPENGL_SUPPORT true)
0061 endif()
0062 
0063 
0064 ##options
0065 #OPTION(DEBUG
0066 #       "Build the project using debugging code"
0067 #       ON  #default on, make default off in stable branch
0068 #       CMAKE_BUILD_TYPE "DEBUG"
0069 #       #if CMAKE_BUILD_TYPE is not defined, FindKDE3.make
0070 #       #adds -O2 to CMAKE_CXX_FLAGS
0071 #)
0072 
0073 IF(DEBUG)
0074         ADD_DEFINITIONS(-DDEBUG -ggdb -O)
0075 ENDIF(DEBUG)
0076 
0077 # enable code depending on OPENGL-support
0078 if(OPENGL_SUPPORT)
0079         add_definitions(-DOPENGL_SUPPORT)
0080 endif(OPENGL_SUPPORT)
0081 
0082 add_subdirectory(src)
0083 add_subdirectory(doc)
0084 
0085 ki18n_install(po)
0086 kdoctools_install(po)
0087 
0088 #message(STATUS "ksudoku: DEBUG: ${DEBUG}")
0089 #message(STATUS "ksudoku: install prefix: ${CMAKE_INSTALL_PREFIX}")
0090 
0091 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)