CMake: use pkg-config directories in test/.
This is required for successful linking on FreeBSD.pull/33/head
parent
e462387fca
commit
f8b6c33290
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue