add_imgui_app(app_hub_launcher
    main.cpp
    ${CMAKE_SOURCE_DIR}/functions/core/app_card.cpp
    ${CMAKE_SOURCE_DIR}/functions/gfx/gl_texture_load.cpp
    ${CMAKE_SOURCE_DIR}/vendor/stb/stb_image_impl.cpp
)
target_include_directories(app_hub_launcher 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(app_hub_launcher PRIVATE fn_table_viz)
endif()

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