add_imgui_app(skill_tree
    main.cpp
    ${CMAKE_SOURCE_DIR}/functions/core/parse_md_frontmatter.cpp
    ${CMAKE_SOURCE_DIR}/functions/core/compute_ring_layout.cpp
)
target_include_directories(skill_tree PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

# fn_table_viz: provides data_table::render(), viz_render, TQL engine, Lua, LLM.
# Guard keeps the app compilable in builds where vendor/lua is absent.
if(TARGET fn_table_viz)
    target_link_libraries(skill_tree PRIVATE fn_table_viz)
endif()

if(WIN32)
    set_target_properties(skill_tree PROPERTIES WIN32_EXECUTABLE TRUE)
endif()
