-
cmake_minimum_required(VERSION 3.15) project(app) include(FetchContent) FetchContent_Declare(Eigen3 URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz) FetchContent_MakeAvailable(Eigen3) add_executable(app main.cpp) target_link_libraries(app Eigen3::Eigen)
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
Use a package manager such as Conan or vcpkg. You can check cmake-init to see how to integrate them in an idiomatic fashion.
-
Thank you for your suggestion. I decided to use URL because it was recommended in another repository (not Eigen's). Search for "It is recommended to use the URL approach described above" here. Does it make sense? I assume that downloads are faster this way.