2014-11-13 01:04:59 +02:00
|
|
|
project(kioslave-http)
|
|
|
|
|
|
|
|
macro_optional_find_package(GSSAPI)
|
|
|
|
set_package_properties(GSSAPI PROPERTIES DESCRIPTION "Allows KIO to make use of certain HTTP authentication services"
|
|
|
|
URL "http://web.mit.edu/kerberos/www"
|
|
|
|
TYPE OPTIONAL
|
|
|
|
PURPOSE "A MIT or HEIMDAL flavor of GSSAPI can be used"
|
|
|
|
)
|
|
|
|
|
|
|
|
if(GSSAPI_FOUND)
|
|
|
|
set(HAVE_LIBGSSAPI 1)
|
|
|
|
if(GSSAPI_FLAVOR STREQUAL "MIT")
|
|
|
|
set(GSSAPI_MIT 1)
|
|
|
|
else(GSSAPI_FLAVOR STREQUAL "MIT")
|
|
|
|
set(GSSAPI_MIT 0)
|
|
|
|
endif(GSSAPI_FLAVOR STREQUAL "MIT")
|
|
|
|
|
|
|
|
include_directories( ${GSSAPI_INCS} )
|
|
|
|
|
|
|
|
else(GSSAPI_FOUND)
|
|
|
|
set(HAVE_LIBGSSAPI 0)
|
|
|
|
set(GSSAPI_MIT 0)
|
|
|
|
endif(GSSAPI_FOUND)
|
|
|
|
|
|
|
|
configure_file(config-gssapi.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gssapi.h )
|
|
|
|
|
|
|
|
|
|
|
|
include_directories( ${KDE4_KIO_INCLUDES} ${ZLIB_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/solid
|
|
|
|
${CMAKE_BINARY_DIR}/solid )
|
|
|
|
include_directories( ${CMAKE_SOURCE_DIR}/interfaces ${CMAKE_SOURCE_DIR}/kio/httpfilter )
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_subdirectory(kcookiejar)
|
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-05-09 16:39:13 +00:00
|
|
|
set(kio_http_cache_cleaner_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
http_cache_cleaner.cpp
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
add_executable(kio_http_cache_cleaner ${kio_http_cache_cleaner_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-05-09 16:39:13 +00:00
|
|
|
target_link_libraries(kio_http_cache_cleaner ${KDE4_KIO_LIBS} ${ZLIB_LIBRARY})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
install(TARGETS kio_http_cache_cleaner DESTINATION ${LIBEXEC_INSTALL_DIR})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kio_http_PART_SRCS
|
2015-09-01 01:05:33 +03:00
|
|
|
http.cpp
|
|
|
|
httpauthentication.cpp
|
|
|
|
${httpfilter_STAT_SRCS}
|
|
|
|
${CMAKE_SOURCE_DIR}/kio/httpfilter/httpfilter.cc
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
kde4_add_plugin(kio_http ${kio_http_PART_SRCS})
|
|
|
|
|
|
|
|
target_link_libraries(kio_http ${KDE4_KIO_LIBS} ${KDE4_SOLID_LIBS} kntlm ${ZLIB_LIBRARY} )
|
|
|
|
if(GSSAPI_FOUND)
|
2015-09-01 01:05:33 +03:00
|
|
|
target_link_libraries(kio_http ${GSSAPI_LIBS} )
|
2014-11-13 01:04:59 +02:00
|
|
|
endif(GSSAPI_FOUND)
|
|
|
|
|
|
|
|
install(TARGETS kio_http DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
install(FILES
|
2014-11-13 01:04:59 +02:00
|
|
|
http_cache_cleaner.desktop
|
|
|
|
http.protocol
|
|
|
|
https.protocol
|
|
|
|
webdav.protocol
|
|
|
|
webdavs.protocol
|
2015-09-01 01:05:33 +03:00
|
|
|
DESTINATION ${SERVICES_INSTALL_DIR}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
|