Skip to content

Commit

Permalink
Add imgui as required package for gui-osg when DART_USE_SYSTEM_IMGUI=ON
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 committed Nov 11, 2024
1 parent 26664f5 commit e18ea4b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dart/gui/osg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,19 @@ if(APPLE)
endif()
endif()

set(component_dependency_packages )

# OpenSceneGraph
if(DART_BUILD_GUI_OSG)
dart_find_package(OpenSceneGraph)
dart_check_required_package(OpenSceneGraph "dart-gui-osg" "OpenSceneGraph" "3.0")
list(APPEND component_dependency_packages OpenSceneGraph)

# ImGui
if(DART_USE_SYSTEM_IMGUI)
dart_find_package(imgui)
dart_check_required_package(imgui "imgui")
else()
#
list(APPEND component_dependency_packages imgui)
endif()
else()
message(STATUS "Skipping OpenSceneGraph (DART_BUILD_GUI_OSG == ${DART_BUILD_GUI_OSG})")
Expand Down Expand Up @@ -61,7 +63,7 @@ endif()
add_component(${PROJECT_NAME} ${component_name})
add_component_targets(${PROJECT_NAME} ${component_name} ${target_name})
add_component_dependencies(${PROJECT_NAME} ${component_name} gui ${component_dependencies})
add_component_dependency_packages(${PROJECT_NAME} ${component_name} OpenSceneGraph)
add_component_dependency_packages(${PROJECT_NAME} ${component_name} ${component_dependency_packages})

# Generate header for this namespace
dart_get_filename_components(header_names "gui osg headers" ${hdrs})
Expand Down

0 comments on commit e18ea4b

Please sign in to comment.