summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2014-10-06 07:00:20 (GMT)
committerMontel Laurent <montel@kde.org>2014-10-06 07:00:20 (GMT)
commit6300c30fea213953fa2a052db7cdbfe09bdcab0e (patch)
tree5097671384aeaec0e51e8e99558b2d21163f4e53
parent67614e453f653fed67fee01e4f96b7903cd4694a (diff)
Fix cmakelists.txt
-rw-r--r--generators/chm/kio-msits/CMakeLists.txt4
-rw-r--r--generators/fax/CMakeLists.txt4
-rw-r--r--generators/fictionbook/CMakeLists.txt6
-rw-r--r--generators/ooo/CMakeLists.txt4
-rw-r--r--generators/plucker/CMakeLists.txt4
-rw-r--r--generators/xps/CMakeLists.txt4
6 files changed, 13 insertions, 13 deletions
diff --git a/generators/chm/kio-msits/CMakeLists.txt b/generators/chm/kio-msits/CMakeLists.txt
index 5b50c87..b23c452 100644
--- a/generators/chm/kio-msits/CMakeLists.txt
+++ b/generators/chm/kio-msits/CMakeLists.txt
@@ -10,9 +10,9 @@ include_directories(
set(kio_msits_PART_SRCS msits.cpp )
-kde4_add_plugin(kio_msits ${kio_msits_PART_SRCS})
+add_library(kio_msits MODULE ${kio_msits_PART_SRCS})
-target_link_libraries(kio_msits ${KDE4_KIO_LIBS} ${CHM_LIBRARY} )
+target_link_libraries(kio_msits KF5::KIOCore ${CHM_LIBRARY} )
install(TARGETS kio_msits DESTINATION ${PLUGIN_INSTALL_DIR} )
diff --git a/generators/fax/CMakeLists.txt b/generators/fax/CMakeLists.txt
index f3a321c..fb82133 100644
--- a/generators/fax/CMakeLists.txt
+++ b/generators/fax/CMakeLists.txt
@@ -7,9 +7,9 @@ include_directories(
set(okularGenerator_fax_PART_SRCS generator_fax.cpp faxdocument.cpp faxexpand.cpp faxinit.cpp )
-kde4_add_plugin(okularGenerator_fax ${okularGenerator_fax_PART_SRCS})
+add_library(okularGenerator_fax MODULE ${okularGenerator_fax_PART_SRCS})
-target_link_libraries(okularGenerator_fax okularcore ${KDE4_KDEUI_LIBS} ${QT_QTXML_LIBRARY})
+target_link_libraries(okularGenerator_fax okularcore Qt5::Xml)
install(TARGETS okularGenerator_fax DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/generators/fictionbook/CMakeLists.txt b/generators/fictionbook/CMakeLists.txt
index 108568b..392c165 100644
--- a/generators/fictionbook/CMakeLists.txt
+++ b/generators/fictionbook/CMakeLists.txt
@@ -13,9 +13,9 @@ set(okularGenerator_fb_PART_SRCS
)
-kde4_add_plugin(okularGenerator_fb ${okularGenerator_fb_PART_SRCS})
+add_library(okularGenerator_fb MODULE ${okularGenerator_fb_PART_SRCS})
-target_link_libraries(okularGenerator_fb okularcore ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY})
+target_link_libraries(okularGenerator_fb okularcore KF5::KIOCore Qt5::Xml)
install(TARGETS okularGenerator_fb DESTINATION ${PLUGIN_INSTALL_DIR})
@@ -25,4 +25,4 @@ install(TARGETS okularGenerator_fb DESTINATION ${PLUGIN_INSTALL_DIR})
install( FILES libokularGenerator_fb.desktop okularFb.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_fb.desktop active-documentviewer_fb.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
-kde4_install_icons(${DATA_INSTALL_DIR}/okular/icons)
+ecm_install_icons(${DATA_INSTALL_DIR}/okular/icons)
diff --git a/generators/ooo/CMakeLists.txt b/generators/ooo/CMakeLists.txt
index 400ffe3..9fe2a85 100644
--- a/generators/ooo/CMakeLists.txt
+++ b/generators/ooo/CMakeLists.txt
@@ -29,9 +29,9 @@ set(okularGenerator_ooo_PART_SRCS
)
-kde4_add_plugin(okularGenerator_ooo ${okularGenerator_ooo_PART_SRCS})
+add_library(okularGenerator_ooo MODULE ${okularGenerator_ooo_PART_SRCS})
-target_link_libraries(okularGenerator_ooo okularcore ${KDE4_KIO_LIBS} ${MATH_LIB} ${QT_QTXML_LIBRARY})
+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)
diff --git a/generators/plucker/CMakeLists.txt b/generators/plucker/CMakeLists.txt
index c376467..266a183 100644
--- a/generators/plucker/CMakeLists.txt
+++ b/generators/plucker/CMakeLists.txt
@@ -21,9 +21,9 @@ set(okularGenerator_plucker_SRCS
)
-kde4_add_plugin(okularGenerator_plucker ${okularGenerator_plucker_SRCS} ${qunpluck_SRCS})
+add_library(okularGenerator_plucker MODULE ${okularGenerator_plucker_SRCS} ${qunpluck_SRCS})
-target_link_libraries(okularGenerator_plucker okularcore ${KDE4_KIO_LIBS} ${MATH_LIB} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})
+target_link_libraries(okularGenerator_plucker okularcore KF5::KIOCore ${MATH_LIB} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})
install(TARGETS okularGenerator_plucker DESTINATION ${PLUGIN_INSTALL_DIR})
diff --git a/generators/xps/CMakeLists.txt b/generators/xps/CMakeLists.txt
index 6bd8e58..fa9172e 100644
--- a/generators/xps/CMakeLists.txt
+++ b/generators/xps/CMakeLists.txt
@@ -10,9 +10,9 @@ set(okularGenerator_xps_SRCS
)
-kde4_add_plugin(okularGenerator_xps ${okularGenerator_xps_SRCS})
+add_library(okularGenerator_xps MODULE ${okularGenerator_xps_SRCS})
-target_link_libraries(okularGenerator_xps okularcore ${KDE4_KIO_LIBS} ${QT_QTXML_LIBRARY})
+target_link_libraries(okularGenerator_xps okularcore KF5::KIOCore Qt5::Xml)
install(TARGETS okularGenerator_xps DESTINATION ${PLUGIN_INSTALL_DIR})