Skip to content

Commit ad4a95f

Browse files
committed
Added drawing capabilities to tests when enabled.
1 parent 255c7b8 commit ad4a95f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ target_compile_options(tree-tests PUBLIC "$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>")
2828
set(RELEASE_OPTIONS -fexceptions -O3 -Wall -pedantic)
2929
target_compile_options(tree-tests PUBLIC "$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")
3030

31+
if (INT_TREE_DRAW_EXAMPLES)
32+
target_link_libraries(tree-tests PRIVATE cairo cairo-wrap)
33+
endif()
34+
3135
# If msys2, copy dynamic libraries to executable directory, visual studio does this automatically.
3236
# And there is no need on linux.
3337
if (DEFINED ENV{MSYSTEM})

0 commit comments

Comments
 (0)