]> granicus.if.org Git - graphviz/commitdiff
add the Boost library as a test dependency
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Mon, 9 Aug 2021 10:25:08 +0000 (12:25 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Thu, 12 Aug 2021 05:52:26 +0000 (07:52 +0200)
tests/CMakeLists.txt

index 46cca954080074ac4e0923dc116935c079e6f207..a8173998516cb4b55cd770cdfc0b2a81b60b962a 100644 (file)
@@ -1,5 +1,6 @@
 cmake_minimum_required (VERSION 3.12 FATAL_ERROR)
 
+find_package(Boost REQUIRED)
 find_package(Catch2 REQUIRED)
 
 enable_testing()
@@ -13,6 +14,7 @@ add_library(test_common STATIC
 set_target_properties(test_common PROPERTIES CXX_STANDARD 20)
 set_target_properties(test_common PROPERTIES CXX_STANDARD_REQUIRED ON)
 target_include_directories(test_common PRIVATE
+    ${Boost_INCLUDE_DIRS}
     ${GRAPHVIZ_LIB_DIR}
 )
 target_link_libraries(test_common PUBLIC Catch2::Catch2)