CMake: use pkg-config directories in test/.

This is required for successful linking on FreeBSD.
pull/33/head
whitequark 2016-08-03 08:52:02 +00:00
parent e462387fca
commit f8b6c33290
1 changed files with 6 additions and 2 deletions

View File

@ -2,8 +2,12 @@
include_directories( include_directories(
${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR})
${CAIRO_INCLUDE_DIRS})
foreach(pkg_config_lib CAIRO)
include_directories(${${pkg_config_lib}_INCLUDE_DIRS})
link_directories(${${pkg_config_lib}_LIBRARY_DIRS})
endforeach()
set(testsuite_SOURCES set(testsuite_SOURCES
harness.cpp harness.cpp