Changeset View
Changeset View
Standalone View
Standalone View
filter/CMakeLists.txt
1 | add_library(kio_filter MODULE filter.cc) | 1 | include(ECMQtDeclareLoggingCategory) | ||
---|---|---|---|---|---|
2 | target_link_libraries(kio_filter KF5::KDELibs4Support KF5::Archive KF5::KIOCore) | 2 | | ||
3 | set_target_properties(kio_filter PROPERTIES OUTPUT_NAME "filter") | 3 | set(kio_filter_SRCS filter.cc) | ||
4 | 4 | | |||
5 | ecm_qt_declare_logging_category(kio_filter_SRCS | ||||
6 | HEADER loggingcategory.h | ||||
7 | IDENTIFIER KIO_FILTER_DEBUG | ||||
8 | CATEGORY_NAME kio_filter | ||||
9 | DEFAULT_SEVERITY Debug) | ||||
10 | | ||||
11 | add_library(kio_filter MODULE ${kio_filter_SRCS}) | ||||
12 | target_link_libraries(kio_filter KF5::Archive KF5::KIOCore) | ||||
13 | set_target_properties(kio_filter PROPERTIES OUTPUT_NAME "filter") | ||||
5 | 14 | | |||
6 | install(TARGETS kio_filter DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/kio) | 15 | install(TARGETS kio_filter DESTINATION ${PLUGIN_INSTALL_DIR}/kf5/kio) | ||
7 | install( FILES gzip.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | 16 | install( FILES gzip.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | ||
8 | 17 | | |||
9 | if(KArchive_HAVE_BZIP2) | 18 | if(KArchive_HAVE_BZIP2) | ||
10 | install( FILES bzip.protocol bzip2.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | 19 | install( FILES bzip.protocol bzip2.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | ||
11 | endif() | 20 | endif() | ||
12 | 21 | | |||
13 | if(KArchive_HAVE_LZMA) | 22 | if(KArchive_HAVE_LZMA) | ||
14 | install( FILES lzma.protocol xz.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | 23 | install( FILES lzma.protocol xz.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) | ||
15 | endif() | 24 | endif() |