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

0001 ecm_setup_version(${PROJECT_VERSION}
0002     VARIABLE_PREFIX KSQUARES
0003     VERSION_HEADER ksquares_version.h
0004 )
0005 
0006 add_executable(ksquares)
0007 
0008 target_sources(ksquares PRIVATE
0009     aicontroller.cpp
0010     aicontroller.h
0011     gameboardscene.cpp
0012     gameboardscene.h
0013     gameboardview.cpp
0014     gameboardview.h
0015     highlightanimation.cpp
0016     highlightanimation.h
0017     ksquaresdemowindow.cpp
0018     ksquaresdemowindow.h
0019     ksquaresgame.cpp
0020     ksquaresgame.h
0021     ksquaresplayer.h
0022     ksquareswindow.cpp
0023     ksquareswindow.h
0024     main.cpp
0025     newgamedialog.cpp
0026     newgamedialog.h
0027     scoresdialog.cpp
0028     scoresdialog.h
0029     themegraphicsitems.cpp
0030     themegraphicsitems.h
0031 
0032     ksquares.qrc
0033 )
0034 
0035 ki18n_wrap_ui(ksquares
0036     newgamewidget.ui
0037     scoreswidget.ui
0038     prefs_ai.ui
0039     prefs_display.ui
0040 )
0041 
0042 kconfig_add_kcfg_files(ksquares GENERATE_MOC settings.kcfgc) #GENERATE_MOC is not needed but it doesn't work without it for some reason :S
0043 
0044 file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/*-apps-ksquares.png")
0045 ecm_add_app_icon(ksquares ICONS ${ICONS_SRCS})
0046 
0047 target_link_libraries(ksquares
0048     KF5KDEGames
0049     KF5::CoreAddons
0050     KF5::Completion
0051     KF5::Crash
0052     KF5::DBusAddons
0053     KF5::I18n
0054     KF5::XmlGui
0055 )
0056 
0057 install(TARGETS ksquares ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0058 
0059 install(PROGRAMS org.kde.ksquares.desktop  DESTINATION  ${KDE_INSTALL_APPDIR})
0060 install(FILES org.kde.ksquares.appdata.xml DESTINATION  ${KDE_INSTALL_METAINFODIR})
0061 install(FILES ksquares.kcfg  DESTINATION  ${KDE_INSTALL_KCFGDIR})
0062 
0063 ecm_install_icons(ICONS
0064     128-apps-ksquares.png
0065     16-apps-ksquares.png
0066     22-apps-ksquares.png
0067     32-apps-ksquares.png
0068     48-apps-ksquares.png
0069     64-apps-ksquares.png
0070     DESTINATION ${KDE_INSTALL_ICONDIR}
0071     THEME hicolor
0072 )