From f8b6c3329093d8c210844451ebc1d2865c7bd7b8 Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 3 Aug 2016 08:52:02 +0000 Subject: [PATCH] CMake: use pkg-config directories in test/. This is required for successful linking on FreeBSD. --- test/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f4c4a0d2..40b7436e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -2,8 +2,12 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR} - ${CAIRO_INCLUDE_DIRS}) + ${CMAKE_CURRENT_BINARY_DIR}) + +foreach(pkg_config_lib CAIRO) + include_directories(${${pkg_config_lib}_INCLUDE_DIRS}) + link_directories(${${pkg_config_lib}_LIBRARY_DIRS}) +endforeach() set(testsuite_SOURCES harness.cpp