1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
add_definitions(-DTRANSLATION_DOMAIN=\"kdevplatform\")
set(KDevPlatformSerialization_LIB_SRCS
abstractitemrepository.cpp
indexedstring.cpp
itemrepositoryregistry.cpp
referencecounting.cpp
)
declare_qt_logging_category(KDevPlatformSerialization_LIB_SRCS
TYPE LIBRARY
CATEGORY_BASENAME "serialization"
)
kdevplatform_add_library(KDevPlatformSerialization SOURCES ${KDevPlatformSerialization_LIB_SRCS})
target_link_libraries(KDevPlatformSerialization
PUBLIC
KF5::WidgetsAddons
KF5::I18n
PRIVATE
KDev::Util
)
install(FILES
abstractitemrepository.h
referencecounting.h
indexedstring.h
itemrepositoryexampleitem.h
itemrepository.h
itemrepositoryregistry.h
itemrepositoryreferencecounting.h
repositorymanager.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR}/kdevplatform/serialization COMPONENT Devel
)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
|