File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1212 - name : checkout submodules
1313 run : git submodule update --init --recursive
1414 - name : install toolchain
15- run : sudo apt -y install gcc-arm-none-eabi libeigen3-dev
15+ run : sudo apt -y install gcc-arm-none-eabi
1616 - name : check toolchain
1717 run : arm-none-eabi-gcc --version
1818 - name : build varmint
Original file line number Diff line number Diff line change @@ -28,18 +28,24 @@ if("${GIT_VERSION_HASH}" STREQUAL "")
2828 set (GIT_VERSION_HASH "0" )
2929endif ()
3030
31- ### source files ###
32- find_package (Eigen3 REQUIRED )
33- include_directories (${EIGEN3_INCLUDE_DIRS} )
31+ ### Install Eigen dependency ###
32+ include (FetchContent )
33+ FetchContent_Declare (
34+ Eigen3
35+ GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
36+ GIT_TAG origin/3.4
37+ )
38+ FetchContent_MakeAvaliable (Eigen3 )
3439
40+ ### source files ###
3541include_directories (
3642 include
3743 include /interface
3844 lib
3945 comms/mavlink
4046 comms/mavlink/v1.0
4147 comms/mavlink/v1.0/common
42- comms/mavlink/v1.0/rosflight
48+ ${eigen3_SOURCE_DIR}
4349)
4450
4551file (GLOB_RECURSE ROSFLIGHT_SOURCES
You can’t perform that action at this time.
0 commit comments