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

0001 ecm_setup_version(${KSPACEDUEL_VERSION}
0002     VARIABLE_PREFIX KSPACEDUEL
0003     VERSION_HEADER kspaceduel_version.h
0004 )
0005 
0006 add_executable(kspaceduel)
0007 
0008 target_sources(kspaceduel PRIVATE
0009     ai.cpp
0010     ai.h
0011     defines.h
0012     dialogs.cpp
0013     dialogs.h
0014     main.cpp
0015     mainview.cpp
0016     mainview.h
0017     mathroutines.cpp
0018     mathroutines.h
0019     playerinfo.cpp
0020     playerinfo.h
0021     spritebase.cpp
0022     spritebase.h
0023     sprites.cpp
0024     sprites.h
0025     structs.h
0026     topwidget.cpp
0027     topwidget.h
0028 
0029     kspaceduel.qrc
0030 )
0031 
0032 ki18n_wrap_ui(kspaceduel general.ui)
0033 
0034 kconfig_add_kcfg_files(kspaceduel options.kcfgc)
0035 
0036 file(GLOB ICONS_SRCS "${CMAKE_SOURCE_DIR}/icons/*-apps-kspaceduel.png")
0037 ecm_add_app_icon(kspaceduel ICONS ${ICONS_SRCS})
0038 
0039 target_link_libraries(kspaceduel
0040     KF5KDEGames
0041     KF5::CoreAddons
0042     KF5::Completion
0043     KF5::Crash
0044     KF5::DBusAddons
0045     KF5::XmlGui
0046     Qt${QT_MAJOR_VERSION}::Svg
0047 )
0048 
0049 if (QT_MAJOR_VERSION STREQUAL "6")
0050     target_link_libraries(kspaceduel Qt6::SvgWidgets)
0051 endif()
0052 
0053 install(TARGETS kspaceduel  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0054 install(FILES default_theme.svgz DESTINATION ${KDE_INSTALL_DATADIR}/kspaceduel/sprites)
0055 
0056 install(PROGRAMS org.kde.kspaceduel.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0057 install(FILES kspaceduel.kcfg  DESTINATION  ${KDE_INSTALL_KCFGDIR})
0058 install(FILES org.kde.kspaceduel.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})