Add hello world sdl project
The idea is eventually to visualize the tree to help debugging
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user