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

0001 ecm_setup_version(${KONQUEST_VERSION}
0002     VARIABLE_PREFIX KONQUEST
0003     VERSION_HEADER konquest_version.h
0004 )
0005 
0006 add_executable(konquest)
0007 
0008 target_sources(konquest PRIVATE
0009     game.cpp
0010     localgame.cpp
0011 
0012     Konquest.cc
0013     planet.cc
0014     fleet.cc
0015     sector.cc
0016     mainwin.cc
0017     gameview.cc
0018     minimapview.cc
0019 
0020     map/map.cc
0021     map/mapview.cc
0022     map/mapscene.cc
0023     map/mapitems.cc
0024 
0025     dialogs/newgamedlg.cc
0026     dialogs/scoredlg.cc
0027     dialogs/fleetdlg.cc
0028 
0029     players/ai/becai/becai.cpp
0030     players/ai/becai/becai_gui.cpp
0031     players/ai/default/default.cpp
0032     players/ai/default/weak.cpp
0033     players/ai/default/weak_gui.cpp
0034     players/ai/default/normal.cpp
0035     players/ai/default/normal_gui.cpp
0036     players/ai/default/hard.cpp
0037     players/ai/default/hard_gui.cpp
0038     players/computerplayer.cpp
0039     players/localplayer.cpp
0040     players/localplayer_gui.cpp
0041     players/neutralplayer.cpp
0042     players/player.cpp
0043     players/player_gui.cpp
0044     players/spectatorplayer.cpp
0045     players/spectatorplayer_gui.cpp
0046 
0047     view/standingswidget.cpp
0048 
0049     konquest.qrc
0050 )
0051 
0052 if(KONQUEST_EXAMPLE_PLAYER)
0053     message(STATUS "KONQUEST_EXAMPLE_PLAYER")
0054     target_compile_definitions(konquest PRIVATE -DKONQUEST_EXAMPLE_PLAYER)
0055     target_sources(konquest PRIVATE
0056         players/ai/example/example.cpp
0057         players/ai/example/example_gui.cpp
0058     )
0059 endif()
0060 
0061 ki18n_wrap_ui(konquest dialogs/newGameDialog.ui)
0062 
0063 file(GLOB ICONS_SRCS "${CMAKE_SOURCE_DIR}/icons/*-apps-konquest.png")
0064 ecm_add_app_icon(konquest ICONS ${ICONS_SRCS})
0065 
0066 target_link_libraries(konquest
0067     KDEGames6
0068     KF6::CoreAddons
0069     KF6::Crash
0070     KF6::DBusAddons
0071     KF6::GuiAddons
0072     KF6::I18n
0073     KF6::XmlGui
0074     KF6::WidgetsAddons
0075     Qt6::Svg
0076     Qt6::StateMachine
0077 )
0078 
0079 install(TARGETS konquest  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0080 
0081 install(PROGRAMS org.kde.konquest.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0082 install(FILES org.kde.konquest.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})