Commit 98cf37b6 authored by Laurent Montel's avatar Laurent Montel 😁

prison is in kf5 from long time

parent d4033a4b
...@@ -87,8 +87,7 @@ add_definitions(-DQT_USE_QSTRINGBUILDER) ...@@ -87,8 +87,7 @@ add_definitions(-DQT_USE_QSTRINGBUILDER)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING) add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000) add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0x060000)
find_package(KF5Prison ${KF5_VERSION} CONFIG) find_package(KF5Prison ${KF5_VERSION} CONFIG REQUIRED)
set_package_properties(Prison PROPERTIES DESCRIPTION "The Prison library" URL "http://projects.kde.org/prison" TYPE OPTIONAL PURPOSE "Needed to show mobile barcodes of your contacts")
add_definitions(-DTRANSLATION_DOMAIN=\"kaddressbook\") add_definitions(-DTRANSLATION_DOMAIN=\"kaddressbook\")
add_definitions(-DQT_NO_CAST_FROM_ASCII) add_definitions(-DQT_NO_CAST_FROM_ASCII)
......
...@@ -5,9 +5,7 @@ include_directories( ...@@ -5,9 +5,7 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/printing/ ${CMAKE_CURRENT_SOURCE_DIR}/printing/
) )
if(KF5Prison_FOUND) add_definitions(-DHAVE_PRISON)
add_definitions(-DHAVE_PRISON)
endif()
if (DOMAIN_EXPERIMENTAL) if (DOMAIN_EXPERIMENTAL)
add_subdirectory(domain) add_subdirectory(domain)
...@@ -93,14 +91,12 @@ target_link_libraries(kaddressbookprivate ...@@ -93,14 +91,12 @@ target_link_libraries(kaddressbookprivate
KF5::AkonadiSearchDebug KF5::AkonadiSearchDebug
KF5::I18n KF5::I18n
KF5::KaddressbookImportExport KF5::KaddressbookImportExport
KF5::Prison
) )
if(QGpgme_FOUND) if(QGpgme_FOUND)
target_link_libraries(kaddressbookprivate PRIVATE QGpgme) target_link_libraries(kaddressbookprivate PRIVATE QGpgme)
endif() endif()
if(KF5Prison_FOUND)
target_link_libraries(kaddressbookprivate PRIVATE KF5::Prison)
endif()
target_include_directories(kaddressbookprivate PUBLIC "$<BUILD_INTERFACE:${kaddressbook_SOURCE_DIR};${kaddressbook_BINARY_DIR}>") target_include_directories(kaddressbookprivate PUBLIC "$<BUILD_INTERFACE:${kaddressbook_SOURCE_DIR};${kaddressbook_BINARY_DIR}>")
......
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