diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-10 10:08:42 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-11 01:02:32 +0100 |
commit | 997637b3b466e1f1c95405a3d43a78d78d4ba259 (patch) | |
tree | 65f383e7001106e4bf1a8e9dcaca79859dba2fae /tests/hawd/CMakeLists.txt | |
parent | 558ca7f17ae4f6df48b999e98c4004a49549cd79 (diff) | |
download | sink-997637b3b466e1f1c95405a3d43a78d78d4ba259.tar.gz sink-997637b3b466e1f1c95405a3d43a78d78d4ba259.zip |
commit hashes!
Diffstat (limited to 'tests/hawd/CMakeLists.txt')
-rw-r--r-- | tests/hawd/CMakeLists.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/hawd/CMakeLists.txt b/tests/hawd/CMakeLists.txt index 413c86b..6400baf 100644 --- a/tests/hawd/CMakeLists.txt +++ b/tests/hawd/CMakeLists.txt | |||
@@ -1,6 +1,12 @@ | |||
1 | project(hawd) | 1 | project(hawd) |
2 | 2 | ||
3 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) | 3 | find_package(Libgit2) |
4 | |||
5 | if (LIBGIT2_FOUND) | ||
6 | add_definitions(-DHAVE_LIBGIT2) | ||
7 | endif (LIBGIT2_FOUND) | ||
8 | |||
9 | include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${LIBGIT2_INCLUDE_DIR}) | ||
4 | 10 | ||
5 | set(lib_SRCS | 11 | set(lib_SRCS |
6 | dataset.cpp | 12 | dataset.cpp |
@@ -18,11 +24,11 @@ set(SRCS | |||
18 | 24 | ||
19 | add_library(libhawd ${lib_SRCS}) | 25 | add_library(libhawd ${lib_SRCS}) |
20 | qt5_use_modules(libhawd Core) | 26 | qt5_use_modules(libhawd Core) |
21 | target_link_libraries(libhawd akonadi2common) | 27 | target_link_libraries(libhawd akonadi2common ${LIBGIT2_LIBRARIES}) |
22 | install(TARGETS libhawd DESTINATION lib) | 28 | install(TARGETS libhawd DESTINATION lib) |
23 | 29 | ||
24 | add_executable(${PROJECT_NAME} ${SRCS}) | 30 | add_executable(${PROJECT_NAME} ${SRCS}) |
25 | qt5_use_modules(${PROJECT_NAME} Core) | 31 | qt5_use_modules(${PROJECT_NAME} Core) |
26 | target_link_libraries(${PROJECT_NAME} libhawd) | 32 | target_link_libraries(${PROJECT_NAME} libhawd ${LIBGIT2_LIBRARIES}) |
27 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) | 33 | install(TARGETS ${PROJECT_NAME} DESTINATION bin) |
28 | 34 | ||