diff options
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 | ||