Commit 13f8dc9a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

normalize install header include (fix qt6 build)

parent ab809104
Pipeline #140524 passed with stages
in 47 seconds
# SPDX-FileCopyrightText: none
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
set(PIM_VERSION "5.19.40")
set(PIM_VERSION "5.19.41")
project(Akonadi-Notes VERSION ${PIM_VERSION})
......@@ -84,7 +84,7 @@ install(EXPORT KF5AkonadiNotesTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" F
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/akonadi-notes_version.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF} COMPONENT Devel
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/AkonadiNotes COMPONENT Devel
)
kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT)
......
......@@ -15,7 +15,7 @@ generate_export_header(KF5AkonadiNotes BASE_NAME akonadi-notes)
kde_target_enable_exceptions(KF5AkonadiNotes PUBLIC)
target_include_directories(KF5AkonadiNotes INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/Akonadi/Notes;${KDE_INSTALL_INCLUDEDIR_KF}/akonadi/notes>")
target_include_directories(KF5AkonadiNotes INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/AkonadiNotes>")
target_include_directories(KF5AkonadiNotes PUBLIC "$<BUILD_INTERFACE:${Akonadi-Notes_SOURCE_DIR}/src;${Akonadi-Notes_BINARY_DIR}/src;>")
target_link_libraries(KF5AkonadiNotes
......@@ -42,12 +42,12 @@ ecm_generate_headers(AkonadiNotes_CamelCase_HEADERS
NoteUtils
REQUIRED_HEADERS AkonadiNotes_HEADERS
PREFIX Akonadi/Notes
PREFIX Akonadi
)
install(FILES
${AkonadiNotes_CamelCase_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/Akonadi/Notes
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/AkonadiNotes/Akonadi
COMPONENT Devel
)
......@@ -55,7 +55,7 @@ install(FILES
${AkonadiNotes_HEADERS}
${CMAKE_CURRENT_BINARY_DIR}/akonadi-notes_export.h
${AkonadiNotes_CamelCase_HEADERS}
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/akonadi/notes
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF}/AkonadiNotes/akonadi
COMPONENT Devel
)
......
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