Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show All 39 Lines | |||||
40 | ecm_qt_declare_logging_category(kcalcore_LIB_SRCS HEADER kcalcore_debug.h IDENTIFIER KCALCORE_LOG CATEGORY_NAME org.kde.pim.kcalcore) | 40 | ecm_qt_declare_logging_category(kcalcore_LIB_SRCS HEADER kcalcore_debug.h IDENTIFIER KCALCORE_LOG CATEGORY_NAME org.kde.pim.kcalcore) | ||
41 | 41 | | |||
42 | add_library(KF5CalendarCore ${kcalcore_LIB_SRCS}) | 42 | add_library(KF5CalendarCore ${kcalcore_LIB_SRCS}) | ||
43 | 43 | | |||
44 | generate_export_header(KF5CalendarCore BASE_NAME kcalcore) | 44 | generate_export_header(KF5CalendarCore BASE_NAME kcalcore) | ||
45 | 45 | | |||
46 | add_library(KF5::CalendarCore ALIAS KF5CalendarCore) | 46 | add_library(KF5::CalendarCore ALIAS KF5CalendarCore) | ||
47 | 47 | | |||
48 | # backward compatibility with the old name | ||||
49 | # TODO: remove for KF6 | ||||
50 | target_compile_definitions(KF5CalendarCore INTERFACE "-DKCalCore=KCalendarCore") | ||||
dfaure: This could be INTERFACE rather than PUBLIC, we don't need this define when compiling… | |||||
48 | target_include_directories(KF5CalendarCore INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KCalCore>") | 51 | target_include_directories(KF5CalendarCore INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF5}/KCalCore>") | ||
49 | target_include_directories(KF5CalendarCore PUBLIC "$<BUILD_INTERFACE:${KCalCore_SOURCE_DIR}/src;${KCalCore_BINARY_DIR}/src>") | 52 | target_include_directories(KF5CalendarCore PUBLIC "$<BUILD_INTERFACE:${KCalCore_SOURCE_DIR}/src;${KCalCore_BINARY_DIR}/src>") | ||
50 | 53 | | |||
51 | target_link_libraries(KF5CalendarCore | 54 | target_link_libraries(KF5CalendarCore | ||
52 | PUBLIC | 55 | PUBLIC | ||
53 | Qt5::Core | 56 | Qt5::Core | ||
54 | PRIVATE | 57 | PRIVATE | ||
55 | Qt5::Gui | 58 | Qt5::Gui | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |
This could be INTERFACE rather than PUBLIC, we don't need this define when compiling KF5CalendarCore itself (assuming there's no KCalCore left in there).