Skip to content
Prev Previous commit
Next Next commit
Added drawing capabilities to tests when enabled.
  • Loading branch information
5cript committed Jul 31, 2024
commit ad4a95fe4213445bd1be3d8f0877fa1aafc81f74
4 changes: 4 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ target_compile_options(tree-tests PUBLIC "$<$<CONFIG:DEBUG>:${DEBUG_OPTIONS}>")
set(RELEASE_OPTIONS -fexceptions -O3 -Wall -pedantic)
target_compile_options(tree-tests PUBLIC "$<$<CONFIG:RELEASE>:${RELEASE_OPTIONS}>")

if (INT_TREE_DRAW_EXAMPLES)
target_link_libraries(tree-tests PRIVATE cairo cairo-wrap)
endif()

# If msys2, copy dynamic libraries to executable directory, visual studio does this automatically.
# And there is no need on linux.
if (DEFINED ENV{MSYSTEM})
Expand Down