CMakeLists.txt 860 Bytes
Newer Older
1
set(kshisen_SRCS
Frederik Schwarzer's avatar
Frederik Schwarzer committed
2
    app.cpp
3
    board.cpp
Frederik Schwarzer's avatar
Frederik Schwarzer committed
4
    main.cpp
5
6
    move.cpp
    possiblemove.cpp
Frederik Schwarzer's avatar
Frederik Schwarzer committed
7
)
8

9
10
ecm_qt_declare_logging_category(kshisen_SRCS HEADER debug.h IDENTIFIER KSHISEN_General CATEGORY_NAME kshisen)

11
ki18n_wrap_ui(kshisen_SRCS settings.ui)
12

13
kconfig_add_kcfg_files(kshisen_SRCS prefs.kcfgc)
14

Thomas Branch's avatar
Thomas Branch committed
15
16
file(GLOB ICON_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/../icons/*-apps-kshisen.png")
ecm_add_app_icon(kshisen_SRCS ICONS ${ICON_SRCS})
17
add_executable(kshisen ${kshisen_SRCS})
18

19
target_link_libraries(kshisen
Frederik Schwarzer's avatar
Frederik Schwarzer committed
20
21
22
23
24
25
26
27
28
    Qt5::Gui
    KF5::Crash
    KF5::DBusAddons
    KF5::I18n
    KF5::XmlGui
    KF5KDEGames
    KF5KDEGamesPrivate
    KF5KMahjongglib
)
29

30
install(TARGETS kshisen ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
31

32
33
install(FILES kshisen.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES kshisenui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kshisen)
34
35

add_subdirectory(tests)