Commit 8d4859d2 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up

parent efb9fc82
......@@ -28,16 +28,10 @@ ecm_setup_version(${KDEPIMLIBS_VERSION} VARIABLE_PREFIX KALARMCAL
########### Find packages ###########
find_package(KF5KDELibs4Support ${KF5_VERSION} CONFIG REQUIRED)
if(${CMAKE_SOURCE_DIR} STREQUAL ${KAlarmCal_SOURCE_DIR})
find_package(KF5Akonadi ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarCore ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5IdentityManagement ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5Holidays ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
else()
# IMPORTED targets are scoped, so KF5::AkonadiPrivate found in ../akonadi
# won't work here, and it is a PUBLIC dependency of KF5::Akonadi
find_package(KF5AkonadiServer ${KF5AkonadiServer_MIN_VERSION} CONFIG REQUIRED)
endif()
find_package(KF5Akonadi ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5CalendarCore ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5IdentityManagement ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
find_package(KF5Holidays ${KDEPIMLIBS_VERSION} CONFIG REQUIRED)
add_definitions(-DTRANSLATION_DOMAIN=\"libkalarmcal5\")
add_definitions("-DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII")
......@@ -68,7 +62,5 @@ install(FILES
DESTINATION ${KF5_INCLUDE_INSTALL_DIR} COMPONENT Devel
)
if ("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
Supports Markdown
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