summaryrefslogtreecommitdiffstats
path: root/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r--common/CMakeLists.txt37
1 files changed, 23 insertions, 14 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index a80ef95..fe72605 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -1,41 +1,45 @@
1include_directories(${CMAKE_CURRENT_BINARY_DIR}) 1include_directories(${CMAKE_CURRENT_BINARY_DIR})
2include_directories(domain) 2include_directories(domain)
3 3
4project(sinkcommon) 4project(sink)
5 5
6ecm_setup_version("0.1" VARIABLE_PREFIX SinkCommon 6ecm_setup_version("0.1" VARIABLE_PREFIX Sink
7 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sinkcommon_version.h" 7 VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/sink_version.h"
8 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfigVersion.cmake" 8 PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/SinkConfigVersion.cmake"
9 SOVERSION 0 9 SOVERSION 0
10) 10)
11 11
12########### CMake Config Files ########### 12########### CMake Config Files ###########
13set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/SinkCommon") 13set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Sink")
14 14
15ecm_configure_package_config_file( 15ecm_configure_package_config_file(
16 "${CMAKE_CURRENT_SOURCE_DIR}/SinkCommonConfig.cmake.in" 16 "${CMAKE_CURRENT_SOURCE_DIR}/SinkConfig.cmake.in"
17 "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfig.cmake" 17 "${CMAKE_CURRENT_BINARY_DIR}/SinkConfig.cmake"
18 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR} 18 INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
19) 19)
20 20
21install(FILES 21install(FILES
22 "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfig.cmake" 22 "${CMAKE_CURRENT_BINARY_DIR}/SinkConfig.cmake"
23 "${CMAKE_CURRENT_BINARY_DIR}/SinkCommonConfigVersion.cmake" 23 "${CMAKE_CURRENT_BINARY_DIR}/SinkConfigVersion.cmake"
24 DESTINATION "${CMAKECONFIG_INSTALL_DIR}" 24 DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
25 COMPONENT Devel 25 COMPONENT Devel
26) 26)
27 27
28install(EXPORT SinkCommonTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkCommonTargets.cmake) 28add_definitions("-fvisibility=hidden")
29
30install(EXPORT SinkTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkTargets.cmake)
29 31
30set(storage_SRCS storage_lmdb.cpp) 32set(storage_SRCS storage_lmdb.cpp)
31set(storage_LIBS lmdb) 33set(storage_LIBS lmdb)
32 34
33set(command_SRCS 35set(command_SRCS
36 store.cpp
37 notifier.cpp
38 resourcecontrol.cpp
34 modelresult.cpp 39 modelresult.cpp
35 definitions.cpp 40 definitions.cpp
36 log.cpp 41 log.cpp
37 entitybuffer.cpp 42 entitybuffer.cpp
38 clientapi.cpp
39 facadefactory.cpp 43 facadefactory.cpp
40 commands.cpp 44 commands.cpp
41 facade.cpp 45 facade.cpp
@@ -85,7 +89,7 @@ generate_flatbuffers(
85 queuedcommand 89 queuedcommand
86) 90)
87 91
88generate_export_header(${PROJECT_NAME} BASE_NAME SinkCommon EXPORT_FILE_NAME sinkcommon_export.h) 92generate_export_header(${PROJECT_NAME} BASE_NAME Sink EXPORT_FILE_NAME sink_export.h)
89SET_TARGET_PROPERTIES(${PROJECT_NAME} 93SET_TARGET_PROPERTIES(${PROJECT_NAME}
90 PROPERTIES LINKER_LANGUAGE CXX 94 PROPERTIES LINKER_LANGUAGE CXX
91 VERSION "0.1" 95 VERSION "0.1"
@@ -95,15 +99,20 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME}
95qt5_use_modules(${PROJECT_NAME} Network) 99qt5_use_modules(${PROJECT_NAME} Network)
96target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) 100target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async)
97install(TARGETS ${PROJECT_NAME} 101install(TARGETS ${PROJECT_NAME}
98 EXPORT SinkCommonTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} ) 102 EXPORT SinkTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} )
103
104add_clang_static_analysis(${PROJECT_NAME})
99 105
100install(FILES 106install(FILES
101 clientapi.h 107 store.h
108 notifier.h
109 resourcecontrol.h
102 domain/applicationdomaintype.h 110 domain/applicationdomaintype.h
103 query.h 111 query.h
104 inspection.h 112 inspection.h
105 notification.h 113 notification.h
106 bufferadaptor.h 114 bufferadaptor.h
115 ${CMAKE_CURRENT_BINARY_DIR}/sink_export.h
107 DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel 116 DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel
108) 117)
109 118