Commit 0fafab68 authored by Daniel Vrátil's avatar Daniel Vrátil 🤖
Browse files

Clean up the CMake build system a bit

Most porting to use ecm_add_test and target_include_directories,
couple fixes of include paths and linking libraries. We try to make
sure that libs and apps don't have any other include paths other than
their own and those provided by their dependencies.

This will be useful in future if we try to split the kdepim repo.
parent 44e60782
......@@ -4,7 +4,6 @@ project(kaddressbook)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/xxport/shared
${CMAKE_CURRENT_SOURCE_DIR}/printing/
${Grantlee_INCLUDE_DIRS}
)
......@@ -157,6 +156,8 @@ if(KF5Prison_FOUND)
target_link_libraries(kaddressbookprivate KF5::Prison)
endif()
target_include_directories(kaddressbookprivate PUBLIC "$<BUILD_INTERFACE:${kaddressbook_SOURCE_DIR};${kaddressbook_BINARY_DIR}>")
set_target_properties(kaddressbookprivate PROPERTIES VERSION ${KDEPIM_LIB_VERSION} SOVERSION ${KDEPIM_LIB_SOVERSION})
install(TARGETS kaddressbookprivate ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} LIBRARY NAMELINK_SKIP)
......
include_directories(${CMAKE_SOURCE_DIR}/kaddressbook)
include_directories(${kaddressbook_SOURCE_DIR})
set(kontact_kaddressbookplugin_PART_SRCS
kaddressbookplugin_debug.cpp
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment