CMakeLists.txt 743 Bytes
Newer Older
1
2
add_definitions(-DTRANSLATION_DOMAIN="libkcddb")

3
add_subdirectory(doc)
4

5
ki18n_wrap_ui(ui_sources cddbconfigwidget.ui)
6

7
8
9
10
add_library(kcm_cddb MODULE
    cddbconfigwidget.cpp
    kcmcddb.cpp
    ${ui_sources})
Laurent Montel's avatar
Laurent Montel committed
11

12
set_source_files_properties(cddbconfigwidget.cpp PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/ui_cddbconfigwidget.h)
13

14
15
16
17
18
19
target_link_libraries(kcm_cddb PRIVATE
    KF5::ConfigWidgets
    KF5::I18n
    KF5::KIOCore
    KF5::KIOWidgets
    KF5::WidgetsAddons
20
21
    KF5::Cddb
)
22
23
24
target_include_directories(kcm_cddb
    PRIVATE ${CMAKE_SOURCE_DIR} # for libkcddb/ prefixed includes of library headers
)
25

26
install(TARGETS kcm_cddb DESTINATION ${PLUGIN_INSTALL_DIR})
27

28
install(FILES libkcddb.desktop  DESTINATION  ${SERVICES_INSTALL_DIR})