diff options
Diffstat (limited to 'common/CMakeLists.txt')
-rw-r--r-- | common/CMakeLists.txt | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index 0dacda1..a165820 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt | |||
@@ -1,33 +1,33 @@ | |||
1 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | 1 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
2 | include_directories(domain) | 2 | include_directories(domain) |
3 | 3 | ||
4 | project(sinkcommon) | 4 | project(sink) |
5 | 5 | ||
6 | ecm_setup_version("0.1" VARIABLE_PREFIX SinkCommon | 6 | ecm_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 ########### |
13 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/SinkCommon") | 13 | set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/Sink") |
14 | 14 | ||
15 | ecm_configure_package_config_file( | 15 | ecm_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 | ||
21 | install(FILES | 21 | install(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 | ||
28 | add_definitions("-fvisibility=hidden") | 28 | add_definitions("-fvisibility=hidden") |
29 | 29 | ||
30 | install(EXPORT SinkCommonTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkCommonTargets.cmake) | 30 | install(EXPORT SinkTargets DESTINATION "${CMAKECONFIG_INSTALL_DIR}" FILE SinkTargets.cmake) |
31 | 31 | ||
32 | set(storage_SRCS storage_lmdb.cpp) | 32 | set(storage_SRCS storage_lmdb.cpp) |
33 | set(storage_LIBS lmdb) | 33 | set(storage_LIBS lmdb) |
@@ -87,7 +87,7 @@ generate_flatbuffers( | |||
87 | queuedcommand | 87 | queuedcommand |
88 | ) | 88 | ) |
89 | 89 | ||
90 | generate_export_header(${PROJECT_NAME} BASE_NAME SinkCommon EXPORT_FILE_NAME sinkcommon_export.h) | 90 | generate_export_header(${PROJECT_NAME} BASE_NAME Sink EXPORT_FILE_NAME sink_export.h) |
91 | SET_TARGET_PROPERTIES(${PROJECT_NAME} | 91 | SET_TARGET_PROPERTIES(${PROJECT_NAME} |
92 | PROPERTIES LINKER_LANGUAGE CXX | 92 | PROPERTIES LINKER_LANGUAGE CXX |
93 | VERSION "0.1" | 93 | VERSION "0.1" |
@@ -97,7 +97,7 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME} | |||
97 | qt5_use_modules(${PROJECT_NAME} Network) | 97 | qt5_use_modules(${PROJECT_NAME} Network) |
98 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) | 98 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} KF5::Async) |
99 | install(TARGETS ${PROJECT_NAME} | 99 | install(TARGETS ${PROJECT_NAME} |
100 | EXPORT SinkCommonTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} ) | 100 | EXPORT SinkTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS} ${LIBRARY_NAMELINK} ) |
101 | 101 | ||
102 | add_clang_static_analysis(${PROJECT_NAME}) | 102 | add_clang_static_analysis(${PROJECT_NAME}) |
103 | 103 | ||
@@ -108,7 +108,7 @@ install(FILES | |||
108 | inspection.h | 108 | inspection.h |
109 | notification.h | 109 | notification.h |
110 | bufferadaptor.h | 110 | bufferadaptor.h |
111 | ${CMAKE_CURRENT_BINARY_DIR}/sinkcommon_export.h | 111 | ${CMAKE_CURRENT_BINARY_DIR}/sink_export.h |
112 | DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel | 112 | DESTINATION ${INCLUDE_INSTALL_DIR}/${PROJECT_NAME} COMPONENT Devel |
113 | ) | 113 | ) |
114 | 114 | ||