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

0001 set(HAVE_JABBER_SUPPORT ${WITH_JABBER_SUPPORT})
0002 configure_file(config-ksirk.h.in ${CMAKE_CURRENT_BINARY_DIR}/config-ksirk.h)
0003 
0004 if(WITH_JABBER_SUPPORT)
0005     add_subdirectory(iris)
0006 endif()
0007 
0008 add_subdirectory(skins)
0009 add_subdirectory(icons)
0010 
0011 add_executable(ksirk)
0012 
0013 target_sources(ksirk PRIVATE
0014     GameLogic/gameautomaton.cpp
0015     GameLogic/gamesequence.cpp
0016     kgamewin.cpp
0017     kgamewinslots.cpp
0018     gestionSprites.cpp
0019     Sprites/backgnd.cpp
0020     Sprites/animsprite.cpp
0021     Sprites/cavalrysprite.cpp
0022     Sprites/animspriteslist.cpp
0023     Sprites/animspritespool.cpp
0024     Sprites/animspritesgroup.cpp
0025     Sprites/infantrysprite.cpp
0026     Sprites/cannonsprite.cpp
0027     Sprites/skinSpritesData.cpp
0028     Sprites/arrowsprite.cpp
0029     SaveLoad/ksirkgamexmlhandler.cpp
0030     SaveLoad/ksirkgamexmlloader.cpp
0031     GameLogic/aiColsonPlayer.cpp
0032     GameLogic/aiplayer.cpp
0033     GameLogic/aiplayerio.cpp
0034     GameLogic/continent.cpp
0035     GameLogic/country.cpp
0036     GameLogic/dice.cpp
0037     GameLogic/eventslistproperty.cpp
0038     GameLogic/goal.cpp
0039     GameLogic/KsirkChatItem.cpp
0040     GameLogic/KsirkChatModel.cpp
0041     GameLogic/KsirkChatDelegate.cpp
0042     GameLogic/KMessageParts.cpp
0043     GameLogic/nationality.cpp
0044     GameLogic/onu.cpp
0045     GameLogic/player.cpp
0046     GameLogic/distributiondata.cpp
0047     GameLogic/newplayerdata.cpp
0048     Dialogs/kplayersetupwidget.cpp
0049     Dialogs/newGameDialogImpl.cpp
0050     Dialogs/kwaitedplayersetupdialog.cpp
0051     Dialogs/restartOrExitDialogImpl.cpp
0052     Dialogs/joingame.cpp
0053     Dialogs/InvasionSlider.cpp
0054     Dialogs/newGameSummaryWidget.cpp
0055     Dialogs/tcpconnectwidget.cpp
0056     main.cpp
0057     decoratedgameframe.cpp
0058     ksirkConfigDialog.cpp
0059     fightArena.cpp
0060     mainMenu.cpp
0061     krightdialog.cpp
0062     newgamesetup.cpp
0063 
0064     ksirk.qrc
0065 )
0066 
0067 if(WITH_JABBER_SUPPORT)
0068     target_sources(ksirk PRIVATE
0069         Dialogs/jabbergameui.cpp
0070     #   Jabber/jabberaccount.cpp
0071         Jabber/kmessagejabber.cpp
0072         Jabber/jabberbytestream.cpp
0073         Jabber/jabberclient.cpp
0074         Jabber/jabberconnector.cpp
0075         Jabber/privacylist.cpp
0076         Jabber/privacylistitem.cpp
0077         Jabber/privacymanager.cpp
0078     )
0079 endif()
0080 
0081 ecm_qt_declare_logging_category(ksirk
0082     HEADER ksirk_debug.h
0083     IDENTIFIER KSIRK_LOG
0084     CATEGORY_NAME org.kde.ksirk
0085     DESCRIPTION "kdegames(ksirk)"
0086     EXPORT KSIRK
0087 )
0088 
0089 if(WITH_JABBER_SUPPORT)
0090     ecm_qt_declare_logging_category(ksirk
0091         HEADER jabber_protocol_debug.h
0092         IDENTIFIER JABBER_PROTOCOL_LOG
0093         CATEGORY_NAME org.kde.ksirk.jabber
0094         DESCRIPTION "kdegames (ksirk jabber)"
0095         EXPORT KSIRK
0096     )
0097 endif()
0098 
0099 ki18n_wrap_ui(ksirk
0100     Dialogs/qplayersetupdialog.ui
0101     Dialogs/newGameDialog.ui
0102     Dialogs/qwaitedplayersetupdialog.ui
0103     Dialogs/restartOrExitDialog.ui
0104     Dialogs/joingame.ui
0105     Dialogs/newGameSummary.ui
0106     Dialogs/tcpconnectwidget.ui
0107     preferences.ui
0108     mainMenu.ui
0109 )
0110 if(WITH_JABBER_SUPPORT)
0111     ki18n_wrap_ui(ksirk
0112         Dialogs/jabbergameui.ui
0113     )
0114 endif()
0115 
0116 kconfig_add_kcfg_files( ksirk ksirksettings.kcfgc )
0117 
0118 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/hicolor/*-apps-ksirk.png")
0119 ecm_add_app_icon(ksirk ICONS ${ICONS_SRCS})
0120 
0121 target_include_directories(ksirk
0122     PRIVATE
0123         ./Dialogs
0124         ./GameLogic
0125         ./SaveLoad
0126         ./skins
0127         ./Sprites
0128 )
0129 
0130 target_link_libraries(ksirk
0131     KDEGames6
0132     KDEGames6Private
0133     KF6::Crash
0134     KF6::DBusAddons
0135     KF6::I18n
0136     KF6::XmlGui
0137     KF6::NewStuffWidgets
0138     Qt6::Multimedia
0139     Qt6::Xml
0140     Qt6::Svg
0141     Qt6::SvgWidgets
0142     Qt6::Core5Compat
0143 )
0144 if(WITH_JABBER_SUPPORT)
0145     target_link_libraries(ksirk
0146         iris_ksirk
0147         KF6::KIOCore
0148         KF6::Wallet
0149     )
0150 endif()
0151 
0152 install( TARGETS ksirk ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0153 
0154 install(FILES ksirksettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
0155 install(PROGRAMS org.kde.ksirk.desktop DESTINATION ${KDE_INSTALL_APPDIR})
0156 install(FILES ksirk.knsrc  DESTINATION  ${KDE_INSTALL_KNSRCDIR})
0157 install(FILES org.kde.ksirk.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
0158 if(WITH_JABBER_SUPPORT)
0159     install(FILES jabber.png  DESTINATION  ${KDE_INSTALL_DATADIR}/ksirk)
0160 endif()