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

0001 project (ksokoban)
0002 
0003 cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
0004 set(QT_MIN_VERSION "5.11.0")
0005 set(KF5_MIN_VERSION "5.46.0")
0006 
0007 find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
0008 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} )
0009 
0010 include(KDEInstallDirs)
0011 include(KDECMakeSettings)
0012 include(KDECompilerSettings NO_POLICY_SCOPE)
0013 include(ECMOptionalAddSubdirectory)
0014 include(ECMInstallIcons)
0015 include(ECMSetupVersion)
0016 include(ECMMarkNonGuiExecutable)
0017 include(ECMGenerateHeaders)
0018 include(ECMAddAppIcon)
0019 include(GenerateExportHeader)
0020 include(FeatureSummary)
0021 
0022 find_package(Qt5 ${QT_MIN_VERSION} REQUIRED Core Gui Widgets)
0023 
0024 find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
0025     Config
0026     CoreAddons
0027     I18n
0028     KIO
0029     WidgetsAddons
0030     XmlGui
0031 )
0032 
0033 find_package(KF5DocTools ${KF5_MIN_VERSION})
0034 
0035 add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x050C00)
0036 add_definitions(-DKF_DISABLE_DEPRECATED_BEFORE_AND_AT=0x052e00)
0037 
0038 if (${KF5Config_VERSION} STRGREATER "5.56.0")
0039         add_definitions(-DQT_NO_FOREACH)
0040         MESSAGE(STATUS "compile without foreach")
0041 endif()
0042 
0043 feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
0044 
0045 set(ksokoban_SRCS
0046     Bookmark.cpp
0047     ImageData.cpp
0048     LevelMap.cpp
0049     Map.cpp
0050     Move.cpp
0051     PlayField.cpp
0052     History.cpp
0053     InternalCollections.cpp
0054     main.cpp
0055     MapDelta.cpp
0056     MoveSequence.cpp
0057     StaticImage.cpp
0058     HtmlPrinter.cpp
0059     LevelCollection.cpp
0060     MainWindow.cpp
0061     ModalLabel.cpp
0062     PathFinder.cpp
0063 )
0064 add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
0065 add_executable(ksokoban ${ksokoban_SRCS})
0066 target_link_libraries(ksokoban
0067     KF5::I18n
0068     Qt5::Widgets
0069     Qt5::Gui
0070     KF5::WidgetsAddons
0071     Qt5::Core
0072     KF5::XmlGui
0073     KF5::KIOCore
0074 )
0075 
0076 add_subdirectory(data)
0077 if(KF5DocTools_FOUND)
0078     add_subdirectory(doc)
0079 endif()
0080 
0081 install(TARGETS ksokoban ${INSTALL_TARGETS_DEFAULT_ARGS})