Warning, /pim/sink/common/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 include_directories(${CMAKE_CURRENT_BINARY_DIR})
0002 include_directories(domain)
0003 
0004 ecm_setup_version(${sink_VERSION}
0005     VARIABLE_PREFIX Sink
0006     VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sink_version.h"
0007     PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/SinkConfigVersion.cmake"
0008     SOVERSION 0
0009 )
0010 
0011 ########### CMake Config Files ###########
0012 set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Sink")
0013 
0014 configure_package_config_file(
0015     "${CMAKE_CURRENT_SOURCE_DIR}/SinkConfig.cmake.in"
0016     "${CMAKE_CURRENT_BINARY_DIR}/SinkConfig.cmake"
0017     INSTALL_DESTINATION  ${CMAKECONFIG_INSTALL_DIR}
0018 )
0019 
0020 install(FILES
0021     "${CMAKE_CURRENT_BINARY_DIR}/SinkConfig.cmake"
0022     "${CMAKE_CURRENT_BINARY_DIR}/SinkConfigVersion.cmake"
0023     DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
0024     COMPONENT Devel
0025 )
0026 
0027 set(CMAKE_CXX_VISIBILITY_PRESET default)
0028 
0029 install(EXPORT SinkTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkTargets.cmake)
0030 
0031 add_library(${PROJECT_NAME} SHARED
0032     store.cpp
0033     secretstore.cpp
0034     notifier.cpp
0035     resourcecontrol.cpp
0036     modelresult.cpp
0037     definitions.cpp
0038     log.cpp
0039     entitybuffer.cpp
0040     facadefactory.cpp
0041     commands.cpp
0042     facade.cpp
0043     pipeline.cpp
0044     propertymapper.cpp
0045     domainadaptor.cpp
0046     resource.cpp
0047     genericresource.cpp
0048     resourceaccess.cpp
0049     queryrunner.cpp
0050     listener.cpp
0051     storage_common.cpp
0052     threadboundary.cpp
0053     messagequeue.cpp
0054     index.cpp
0055     typeindex.cpp
0056     resourcefacade.cpp
0057     resourceconfig.cpp
0058     configstore.cpp
0059     resultset.cpp
0060     domain/propertyregistry.cpp
0061     domain/applicationdomaintype.cpp
0062     domain/typeimplementations.cpp
0063     test.cpp
0064     query.cpp
0065     changereplay.cpp
0066     adaptorfactoryregistry.cpp
0067     synchronizer.cpp
0068     synchronizerstore.cpp
0069     contactpreprocessor.cpp
0070     mailpreprocessor.cpp
0071     eventpreprocessor.cpp
0072     todopreprocessor.cpp
0073     specialpurposepreprocessor.cpp
0074     datastorequery.cpp
0075     storage/entitystore.cpp
0076     storage/key.cpp
0077     indexer.cpp
0078     mail/threadindexer.cpp
0079     mail/fulltextindexer.cpp
0080     notification.cpp
0081     commandprocessor.cpp
0082     inspector.cpp
0083     propertyparser.cpp
0084     utils.cpp
0085     fulltextindex.cpp
0086     storage_lmdb.cpp)
0087 
0088 
0089 kde_target_enable_exceptions(${PROJECT_NAME} PUBLIC)
0090 
0091 generate_flatbuffers(
0092     ${PROJECT_NAME}
0093 
0094     commands/commandcompletion
0095     commands/createentity
0096     commands/deleteentity
0097     commands/handshake
0098     commands/modifyentity
0099     commands/revisionupdate
0100     commands/synchronize
0101     commands/notification
0102     commands/revisionreplayed
0103     commands/inspection
0104     commands/flush
0105     commands/secret
0106     domain/contact
0107     domain/addressbook
0108     domain/event
0109     domain/todo
0110     domain/calendar
0111     domain/mail
0112     domain/folder
0113     domain/dummy
0114     entity
0115     metadata
0116     queuedcommand
0117 )
0118 
0119 generate_export_header(${PROJECT_NAME} BASE_NAME Sink EXPORT_FILE_NAME sink_export.h)
0120 SET_TARGET_PROPERTIES(${PROJECT_NAME}
0121     PROPERTIES LINKER_LANGUAGE CXX
0122     VERSION ${Sink_VERSION}
0123     SOVERSION ${Sink_SOVERSION}
0124     EXPORT_NAME ${PROJECT_NAME}
0125 )
0126 
0127 target_link_libraries(${PROJECT_NAME}
0128 PUBLIC
0129     KAsync
0130     Qt5::Network
0131 PRIVATE
0132     ${LMDB_LIBRARIES}
0133     Qt5::Gui
0134     KF5::Mime
0135     KF5::Contacts
0136     KF5::CalendarCore
0137     ${XAPIAN_LIBRARIES}
0138     sink_mimetreeparser
0139     zstd::zstd
0140 )
0141 install(TARGETS ${PROJECT_NAME}
0142     EXPORT SinkTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} )
0143 
0144 install(FILES
0145     store.h
0146     notifier.h
0147     resourcecontrol.h
0148     domain/applicationdomaintype.h
0149     query.h
0150     standardqueries.h
0151     inspection.h
0152     notification.h
0153     bufferadaptor.h
0154     test.h
0155     log.h
0156     flush.h
0157     secretstore.h
0158     ${CMAKE_CURRENT_BINARY_DIR}/sink_export.h
0159     DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel
0160 )
0161