summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-15 07:43:20 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-15 07:43:20 +0100
commit3bea7e1ae1e102b0f06231626fd768f795d46db8 (patch)
tree80b656f8c6b527f4b1feeea5166ce6aafa0e46b3 /client
parent6ca6273427fe939080aba15349dcc380c44d1c3f (diff)
downloadsink-3bea7e1ae1e102b0f06231626fd768f795d46db8.tar.gz
sink-3bea7e1ae1e102b0f06231626fd768f795d46db8.zip
shared libraries, install targets
Diffstat (limited to 'client')
-rw-r--r--client/CMakeLists.txt16
-rw-r--r--client/test/CMakeLists.txt2
2 files changed, 10 insertions, 8 deletions
diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt
index 1ebf5fd..f85839d 100644
--- a/client/CMakeLists.txt
+++ b/client/CMakeLists.txt
@@ -7,13 +7,15 @@ set(akonadi2client_SRCS
7 threadboundary.cpp 7 threadboundary.cpp
8) 8)
9 9
10add_library(${PROJECT_NAME}_lib SHARED ${akonadi2client_SRCS}) 10add_library(${PROJECT_NAME} SHARED ${akonadi2client_SRCS})
11target_link_libraries(${PROJECT_NAME}_lib akonadi2common) 11target_link_libraries(${PROJECT_NAME} akonadi2common)
12qt5_use_modules(${PROJECT_NAME}_lib Widgets Network)
13
14add_executable(${PROJECT_NAME} main.cpp)
15target_link_libraries(${PROJECT_NAME} akonadi2_client_lib akonadi2common)
16qt5_use_modules(${PROJECT_NAME} Widgets Network) 12qt5_use_modules(${PROJECT_NAME} Widgets Network)
17install(TARGETS ${PROJECT_NAME} DESTINATION bin) 13install(TARGETS ${PROJECT_NAME} DESTINATION lib)
14
15add_executable(${PROJECT_NAME}_bin main.cpp)
16set_target_properties(${PROJECT_NAME}_bin PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
17target_link_libraries(${PROJECT_NAME}_bin ${PROJECT_NAME} akonadi2common)
18qt5_use_modules(${PROJECT_NAME}_bin Widgets Network)
19install(TARGETS ${PROJECT_NAME}_bin DESTINATION bin)
18 20
19add_subdirectory(test) 21add_subdirectory(test)
diff --git a/client/test/CMakeLists.txt b/client/test/CMakeLists.txt
index 0d5da1b..601899a 100644
--- a/client/test/CMakeLists.txt
+++ b/client/test/CMakeLists.txt
@@ -5,7 +5,7 @@ macro(auto_tests)
5 foreach(_testname ${ARGN}) 5 foreach(_testname ${ARGN})
6 add_executable(${_testname} ${_testname}.cpp ${store_SRCS}) 6 add_executable(${_testname} ${_testname}.cpp ${store_SRCS})
7 qt5_use_modules(${_testname} Core Test) 7 qt5_use_modules(${_testname} Core Test)
8 target_link_libraries(${_testname} lmdb akonadi2_client_lib) 8 target_link_libraries(${_testname} lmdb akonadi2_client)
9 add_test(NAME ${_testname} COMMAND ${_testname}) 9 add_test(NAME ${_testname} COMMAND ${_testname})
10 endforeach(_testname) 10 endforeach(_testname)
11endmacro(auto_tests) 11endmacro(auto_tests)