From 38d4b15ac8e90464b0e6cf5efa0abd13bcafd6a6 Mon Sep 17 00:00:00 2001 From: Tristan Penman Date: Tue, 20 Aug 2019 21:55:23 +1000 Subject: [PATCH] Minor fixes for test suite build --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d9833a6..db7a0f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,8 +57,6 @@ include_directories(include SYSTEM thirdparty/rapidjson-1.1.0/include thirdparty/picojson-1.3.0 thirdparty/nlohmann-json-3.1.2 - ${Boost_INCLUDE_DIRS} - ${Qt5Core_INCLUDE_DIRS} ) if(valijson_BUILD_TESTS) @@ -86,10 +84,12 @@ if(valijson_BUILD_TESTS) ) if(Qt5Core_FOUND) + include_directories(${Qt5Core_INCLUDE_DIRS}) list(APPEND TEST_SOURCES tests/test_qtjson_adapter.cpp) endif() if(Boost_FOUND) + include_directories(${Boost_INCLUDE_DIRS}) list(APPEND TEST_SOURCES tests/test_property_tree_adapter.cpp) endif()