summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2015-01-12 21:24:31 (GMT)
committerMontel Laurent <montel@kde.org>2015-01-12 21:24:31 (GMT)
commitf6df6731625979ac74a19aa276a70fdc91b53d54 (patch)
tree060dc7a6215b21ce14768f235b171b9c3ef4aa32
parent73ccfdefb72b7e671004e5a0cfb95330e2634e78 (diff)
Port qca support
-rw-r--r--generators/ooo/CMakeLists.txt22
1 files changed, 9 insertions, 13 deletions
diff --git a/generators/ooo/CMakeLists.txt b/generators/ooo/CMakeLists.txt
index 9fe2a85..61054bd 100644
--- a/generators/ooo/CMakeLists.txt
+++ b/generators/ooo/CMakeLists.txt
@@ -3,18 +3,14 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../..
)
-find_package(QCA2 "2.0.0")
-set_package_properties("QCA" PROPERTIES
- DESCRIPTION "Qt Cryptographic Architecture (QCA)"
- URL "http://www.digikam.org/sharedlibs"
- TYPE RECOMMENDED
- PURPOSE "Support for encrypted OpenDocument Text documents in Okular.")
+find_package(Qca 2.1.0)
+set_package_properties(Qca PROPERTIES DESCRIPTION "Support for encryption"
+ URL "http://delta.affinix.com/qca"
+ TYPE RECOMMENDED)
-
-if ( QCA2_FOUND )
- include_directories( ${QCA2_INCLUDE_DIR} )
+if ( Qca_FOUND )
add_definitions( -DQCA2 )
-endif( QCA2_FOUND )
+endif()
########### next target ###############
@@ -32,9 +28,9 @@ set(okularGenerator_ooo_PART_SRCS
add_library(okularGenerator_ooo MODULE ${okularGenerator_ooo_PART_SRCS})
target_link_libraries(okularGenerator_ooo okularcore KF5::KIOCore ${MATH_LIB} Qt5::Xml)
-if (QCA2_FOUND)
- target_link_libraries(okularGenerator_ooo okularcore ${QCA2_LIBRARIES})
-endif (QCA2_FOUND)
+if (Qca_FOUND)
+ target_link_libraries(okularGenerator_ooo okularcore qca)
+endif ()
install(TARGETS okularGenerator_ooo DESTINATION ${PLUGIN_INSTALL_DIR})