2015-10-29 09:39:35 +02:00
|
|
|
project(kdeclarative)
|
|
|
|
|
|
|
|
if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
|
|
|
set(KDECLARATIVE_NO_KIO TRUE)
|
2016-03-06 15:59:05 +00:00
|
|
|
endif()
|
2015-10-29 09:39:35 +02:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/config-kdeclarative.h.cmake
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-kdeclarative.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
${KDE4_KIO_INCLUDES}
|
|
|
|
${CMAKE_SOURCE_DIR}/kio
|
|
|
|
${KDE4_KDEUI_INCLUDES}
|
2020-02-01 22:53:13 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2015-10-29 09:39:35 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
set(kdeclarative_LIB_SRCS
|
|
|
|
kdeclarative.cpp
|
|
|
|
private/engineaccess.cpp
|
|
|
|
private/kiconprovider.cpp
|
|
|
|
bindings/qscriptnonguibookkeeping.cpp
|
|
|
|
bindings/i18n.cpp
|
|
|
|
bindings/icon.cpp
|
2023-06-03 16:50:33 +03:00
|
|
|
bindings/image.cpp
|
2015-11-28 04:11:32 +02:00
|
|
|
bindings/url.cpp
|
|
|
|
)
|
2015-10-29 09:39:35 +02:00
|
|
|
|
2016-09-03 00:05:54 +00:00
|
|
|
add_library(kdeclarative ${LIBRARY_TYPE} ${kdeclarative_LIB_SRCS})
|
2015-10-29 09:39:35 +02:00
|
|
|
|
|
|
|
set_target_properties(kdeclarative PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
|
|
|
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(kdeclarative PUBLIC
|
2015-10-29 09:39:35 +02:00
|
|
|
${KDE4_KDECORE_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${QT_QTSCRIPT_LIBRARY}
|
|
|
|
${QT_QTDECLARATIVE_LIBRARY}
|
|
|
|
)
|
|
|
|
|
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(kdeclarative)
|
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-10-29 09:39:35 +02:00
|
|
|
kdeclarative.h
|
2016-04-27 18:43:11 +00:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/kdeclarative_export.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}
|
2015-10-31 12:01:45 +02:00
|
|
|
COMPONENT Devel
|
|
|
|
)
|
2015-10-29 09:39:35 +02:00
|
|
|
|
2015-10-31 12:01:45 +02:00
|
|
|
install(
|
|
|
|
TARGETS kdeclarative
|
|
|
|
EXPORT kdelibsLibraryTargets
|
|
|
|
${INSTALL_TARGETS_DEFAULT_ARGS}
|
|
|
|
)
|