Skip to content

Commit

Permalink
Compile IMU test in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
martinaxgloria authored and Nicogene committed Mar 1, 2024
1 parent 48a9a1e commit 868c7ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# Compilation related dependencies
mamba install cmake compilers make ninja pkg-config
# Actual dependencies
mamba install ycm-cmake-modules yarp opencv idyntree robot-testing-framework icub-main
mamba install ycm-cmake-modules yarp opencv idyntree robot-testing-framework icub-main robometry
- name: Configure [Linux&macOS]
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
Expand All @@ -60,7 +60,7 @@ jobs:
mkdir -p build
cd build
cmake -G"Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/install \
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DICUB_TESTS_COMPILES_IMU_TEST=ON ..
- name: Build
shell: bash -l {0}
Expand Down
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ set(CMAKE_SHARED_MODULE_PREFIX "")
# options
option(ICUB_TESTS_USES_ICUB_MAIN "Turn on to compile the tests that depend on the icub-main repository" ON)
option(ICUB_TESTS_USES_CODYCO "Turn on to compile the test that depend on the codyco-superbuil repository" OFF)
option(ICUB_TESTS_USES_IDYNTREE "Turn on to compile the test that depend on the idyntree repository" OFF)
option(ICUB_TESTS_COMPILES_IMU_TEST "Turn on to compile the IMU test" OFF)

# Build examples?
add_subdirectory(example/cpp)
Expand Down Expand Up @@ -101,8 +101,7 @@ add_subdirectory(src/skinWrapperTest)
#add_subdirectory(src/system-status)

# Build IMU test
if(ICUB_TESTS_USES_IDYNTREE)
find_package(iDynTree REQUIRED)
if(ICUB_TESTS_COMPILES_IMU_TEST)
add_subdirectory(src/imu)
endif()

1 change: 1 addition & 0 deletions src/imu/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_definitions(-D_USE_MATH_DEFINES)
find_package(iDynTree REQUIRED)
find_package(robometry)

robottestingframework_add_plugin(imu HEADERS imu.h
Expand Down

0 comments on commit 868c7ef

Please sign in to comment.