CMakeLists.txt 1.11 KB
Newer Older
1 2 3
add_subdirectory(pics)

set(kdiamond_SRCS
4
	board.cpp
5
	diamond.cpp
6
	game.cpp
7
	game-state.cpp
8
	infobar.cpp
9 10
	main.cpp
	mainwindow.cpp
11
	view.cpp
12 13
)

14
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KDIAMOND VERSION_HEADER kdiamond_version.h)
15

Laurent Montel's avatar
Laurent Montel committed
16
kconfig_add_kcfg_files(kdiamond_SRCS settings.kcfgc)
17

Laurent Montel's avatar
Laurent Montel committed
18
file(GLOB ICONS_SRCS "pics/*-apps-kdiamond.png")
19
ecm_add_app_icon(kdiamond_SRCS ICONS ${ICONS_SRCS})
20

Laurent Montel's avatar
Laurent Montel committed
21
add_executable(kdiamond ${kdiamond_SRCS})
Frederik Schwarzer's avatar
Frederik Schwarzer committed
22 23 24 25 26 27 28 29 30
target_link_libraries(kdiamond
    KF5KDEGames
    KF5::NotifyConfig
    KF5::I18n
    KF5::XmlGui
    KF5::Notifications
    KF5::DBusAddons
    KF5::Crash
)
31

32
install(TARGETS kdiamond  ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
Alexander Lohnau's avatar
Alexander Lohnau committed
33
install(FILES kdiamond.knsrc  DESTINATION ${KDE_INSTALL_DATADIR}/knsrcfiles)
34
install(PROGRAMS org.kde.kdiamond.desktop  DESTINATION ${KDE_INSTALL_APPDIR})
Yuri Chornoivan's avatar
Yuri Chornoivan committed
35
install(FILES org.kde.kdiamond.appdata.xml  DESTINATION  ${KDE_INSTALL_METAINFODIR})
36 37 38
install(FILES kdiamond.kcfg DESTINATION ${KDE_INSTALL_DATADIR}/kdiamond)
install(FILES kdiamondui.rc  DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kdiamond)
install(FILES kdiamond.notifyrc DESTINATION ${KDE_INSTALL_KNOTIFY5RCDIR})