mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
67 lines
1.3 KiB
CMake
67 lines
1.3 KiB
CMake
project(kdewebkit)
|
|
|
|
add_feature_info(QtWebkit QT_QTWEBKIT_FOUND "Needed for building kdelibs" "http://trac.webkit.org/wiki/QtWebKit")
|
|
|
|
if(NOT QT_QTWEBKIT_FOUND)
|
|
message(FATAL_ERROR "The QtWebkit module is required.")
|
|
endif()
|
|
|
|
include_directories(
|
|
${KDE4_KDECORE_INCLUDES}
|
|
${KDE4_KDEUI_INCLUDES}
|
|
${KDE4_KPARTS_INCLUDES}
|
|
${KDE4_KIO_INCLUDES}
|
|
# for the export headers
|
|
${CMAKE_BINARY_DIR}/kutils
|
|
)
|
|
|
|
add_subdirectory(kwebkitpart)
|
|
|
|
set(kdewebkit_LIB_SRCS
|
|
kwebwallet.cpp
|
|
kgraphicswebview.cpp
|
|
kwebpage.cpp
|
|
kwebview.cpp
|
|
kwebpluginfactory.cpp
|
|
)
|
|
|
|
add_library(kdewebkit ${LIBRARY_TYPE} ${kdewebkit_LIB_SRCS})
|
|
|
|
target_link_libraries(kdewebkit
|
|
${KDE4_KDEUI_LIBS}
|
|
${KDE4_KPARTS_LIBS}
|
|
${KDE4_KIO_LIBS}
|
|
${QT_QTWEBKIT_LIBRARY}
|
|
${QT_QTNETWORK_LIBRARY}
|
|
)
|
|
|
|
set_target_properties(kdewebkit PROPERTIES
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
)
|
|
|
|
generate_export_header(kdewebkit)
|
|
|
|
install(
|
|
TARGETS kdewebkit
|
|
EXPORT kdelibsLibraryTargets
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
)
|
|
|
|
install(
|
|
FILES
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdewebkit_export.h
|
|
kwebwallet.h
|
|
kgraphicswebview.h
|
|
kwebpluginfactory.h
|
|
kwebpage.h
|
|
kwebview.h
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
COMPONENT Devel
|
|
)
|
|
|
|
# it is required for adblock
|
|
install(
|
|
FILES khtmlrc
|
|
DESTINATION ${CONFIG_INSTALL_DIR}
|
|
)
|