Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue cmake messages regarding openeb #43

Merged
merged 3 commits into from
Mar 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ on:

jobs:
build_ros1:
uses: ros-event-camera/ros-build-action/.github/workflows/build_ros1.yml@master
uses: ros-misc-utilities/ros_build_scripts/.github/workflows/ros1_ci.yml@master
with:
repo: ${{ github.event.repository.name }}
vcs_url: https://raw.githubusercontent.com/${{ github.repository }}/master/${{ github.event.repository.name }}.repos
build_ros2:
uses: ros-event-camera/ros-build-action/.github/workflows/ros2_ci.yml@master
uses: ros-misc-utilities/ros_build_scripts/.github/workflows/ros2_ci.yml@master
with:
repo: ${{ github.event.repository.name }}
vcs_url: https://raw.githubusercontent.com/${{ github.repository }}/master/${{ github.event.repository.name }}.repos
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ find_package(MetavisionSDK COMPONENTS driver QUIET)
set(MUST_INSTALL_METAVISION FALSE)

if(NOT MetavisionSDK_FOUND)
message(STATUS "metavision SDK is not installed, must build it")
# must set various variables for OpenEB *before* fetching openEB.
# CMAKE_ARGS seems to not work for FetchContent_Declare()
# set(COMPILE_3DVIEW OFF CACHE INTERNAL "Build 3d viewer")
Expand All @@ -39,13 +40,15 @@ if(NOT MetavisionSDK_FOUND)
GIT_TAG 4.2.0-ros)

FetchContent_MakeAvailable(metavision)

message(STATUS "metavision SDK fetched and made available")
# do this to avoid the "install" target being run on the metavision sdk
if(IS_DIRECTORY "${metavision_SOURCE_DIR}")
set_property(DIRECTORY ${metavision_SOURCE_DIR} PROPERTY EXCLUDE_FROM_ALL YES)
endif()

set(MUST_INSTALL_METAVISION TRUE)
else()
message(STATUS "metavision SDK is installed, not building it")
endif()

#
Expand Down
Loading