Add hello world sdl project

The idea is eventually to visualize the tree to help debugging
This commit is contained in:
2024-05-08 15:13:58 -07:00
parent 8f7fccee76
commit e2dde59d19
5 changed files with 62 additions and 0 deletions

View File

@@ -74,6 +74,15 @@ set_target_properties(versioned_map PROPERTIES LINKER_LANGUAGE C)
include(CTest)
option(BUILD_TREE_VIS "Build tree visualization" OFF)
if(BUILD_TREE_VIS)
find_package(SDL2 REQUIRED)
find_package(SDL2_ttf REQUIRED)
add_executable(tree_vis TreeVis.cpp)
target_link_libraries(tree_vis PRIVATE SDL2::SDL2)
target_link_libraries(tree_vis PRIVATE SDL2_ttf::SDL2_ttf)
endif()
if(BUILD_TESTING)
add_executable(rootset_test RootSet.cpp)
target_compile_definitions(rootset_test PRIVATE ENABLE_ROOTSET_TESTS)