From 3ae327ea8ea31da46995da01c6b623c14248dc65 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 14 Dec 2017 17:54:31 +0100 Subject: Modernize out CMakeLists.txt Mainly uses target_include_directories instead of include_directories so libraries public include directory get automatically added when adding the target in target_link_library --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/CMakeLists.txt') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 4617dfd2e..a2879a42b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,3 +1,4 @@ +find_package(SQLite3 3.8.0 REQUIRED) include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/src/3rdparty/qtokenizer ${CMAKE_SOURCE_DIR}/src/csync @@ -8,6 +9,7 @@ include_directories(${CMAKE_SOURCE_DIR}/src ${CMAKE_BINARY_DIR}/src/libsync ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} + ${SQLITE3_INCLUDE_DIR} ) include(owncloud_add_test.cmake) -- cgit v1.2.3