Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2017-12-14 19:54:31 +0300
committerDominik Schmidt <dev@dominik-schmidt.de>2018-01-13 15:58:17 +0300
commit3ae327ea8ea31da46995da01c6b623c14248dc65 (patch)
tree1d6ed12187c29bb42e794f1839c8dabcd263f240 /test
parent1c721e9422069744dcc3447219487bf2695a81b6 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt2
-rw-r--r--test/csync/CMakeLists.txt8
2 files changed, 5 insertions, 5 deletions
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)
diff --git a/test/csync/CMakeLists.txt b/test/csync/CMakeLists.txt
index f5f7b68fb..a7ec9f133 100644
--- a/test/csync/CMakeLists.txt
+++ b/test/csync/CMakeLists.txt
@@ -1,11 +1,9 @@
-project(tests C)
+project(tests)
set(TORTURE_LIBRARY torture)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
- ${CSYNC_PUBLIC_INCLUDE_DIRS}
- ${CSTDLIB_PUBLIC_INCLUDE_DIRS}
${CMAKE_BINARY_DIR}
${CMOCKA_INCLUDE_DIR}
)
@@ -13,9 +11,9 @@ include_directories(
include_directories(${CHECK_INCLUDE_DIRS})
# create test library
add_library(${TORTURE_LIBRARY} STATIC torture.c cmdline.c)
-target_link_libraries(${TORTURE_LIBRARY} ${CMOCKA_LIBRARIES} ${CSYNC_LIBRARY} ${CSTDLIB_LIBRARY})
+target_link_libraries(${TORTURE_LIBRARY} ${CMOCKA_LIBRARIES} ${CSYNC_LIBRARY})
-set(TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY})
+set(TEST_TARGET_LIBRARIES ${TORTURE_LIBRARY} Qt5::Core ocsync)
# create tests