CMakeLists.txt 1.3 KB
Newer Older
1
########### next target ###############
2
add_library(akregatorinterfaces)
3

4
target_sources(akregatorinterfaces PRIVATE
Laurent Montel's avatar
indent    
Laurent Montel committed
5
6
7
8
9
    command.cpp
    feedlistmanagementinterface.cpp
    plugin.cpp
    storagefactoryregistry.cpp
    )
10

Laurent Montel's avatar
Laurent Montel committed
11
12
set(akregatorinterfaces_userfeedback_LIB_SRCS)
if (TARGET KUserFeedbackWidgets)
13
    target_sources(akregatorinterfaces PRIVATE
Laurent Montel's avatar
Laurent Montel committed
14
        userfeedback/userfeedbackmanager.cpp
15
        userfeedback/akregatoruserfeedbackprovider.cpp
Laurent Montel's avatar
Laurent Montel committed
16
17
18
19
        )
endif()


20
kconfig_add_kcfg_files(akregatorinterfaces akregatorconfig.kcfgc)
21

Laurent Montel's avatar
Laurent Montel committed
22
generate_export_header(akregatorinterfaces BASE_NAME akregatorinterfaces)
23

Laurent Montel's avatar
Laurent Montel committed
24
if (TARGET KUserFeedbackWidgets)
25
    target_link_libraries(akregatorinterfaces KUserFeedbackWidgets)
Laurent Montel's avatar
Laurent Montel committed
26
27
endif()

28
target_link_libraries(akregatorinterfaces
Laurent Montel's avatar
indent    
Laurent Montel committed
29
    KF5::ConfigGui
30
    Qt::Widgets
Laurent Montel's avatar
indent    
Laurent Montel committed
31
    )
32
33
34
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
    set_target_properties(akregatorinterfaces PROPERTIES UNITY_BUILD ON)
endif()
35
36
target_include_directories(akregatorinterfaces PUBLIC "$<BUILD_INTERFACE:${akregator_SOURCE_DIR}/interfaces;${akregator_BINARY_DIR}/interfaces>")

Laurent Montel's avatar
Laurent Montel committed
37
set_target_properties(akregatorinterfaces PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION}
Laurent Montel's avatar
indent    
Laurent Montel committed
38
    )
39

40
41
install(TARGETS akregatorinterfaces ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(FILES akregator.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
Christophe Giboudeaux's avatar
Christophe Giboudeaux committed
42