mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00

reference: https://github.com/fluxer/katana/issues/7 Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
80 lines
1.7 KiB
CMake
80 lines
1.7 KiB
CMake
project(kioslave-http)
|
|
|
|
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
|
|
${CMAKE_SOURCE_DIR}/interfaces
|
|
${CMAKE_SOURCE_DIR}/kio/httpfilter
|
|
)
|
|
|
|
add_subdirectory(kcookiejar)
|
|
if(ENABLE_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|
|
|
|
########### next target ###############
|
|
|
|
add_executable(kio_http_cache_cleaner http_cache_cleaner.cpp)
|
|
|
|
target_link_libraries(kio_http_cache_cleaner
|
|
${KDE4_KIO_LIBS}
|
|
${ZLIB_LIBRARY}
|
|
)
|
|
|
|
install(TARGETS kio_http_cache_cleaner DESTINATION ${KDE4_LIBEXEC_INSTALL_DIR})
|
|
|
|
########### next target ###############
|
|
|
|
set(kio_http_PART_SRCS
|
|
http.cpp
|
|
httpauthentication.cpp
|
|
${httpfilter_STAT_SRCS}
|
|
${CMAKE_SOURCE_DIR}/kio/httpfilter/httpfilter.cc
|
|
)
|
|
|
|
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)
|
|
target_link_libraries(kio_http ${GSSAPI_LIBS})
|
|
endif()
|
|
|
|
install(TARGETS kio_http DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
|
|
|
########### install files ###############
|
|
|
|
install(
|
|
FILES
|
|
http_cache_cleaner.desktop
|
|
http.protocol
|
|
https.protocol
|
|
webdav.protocol
|
|
webdavs.protocol
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
|
)
|