From c664ee1b8a53d958d7cb2fccf3b04aec8ea1cce0 Mon Sep 17 00:00:00 2001 From: papush! Date: Tue, 9 Nov 2021 22:17:14 +0100 Subject: [PATCH] add eigen dep --- CMakeLists.txt | 4 +++- external/Eigen/CMakeLists.txt | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 external/Eigen/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index cd6e2c1..345b53c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,7 @@ project(tp LANGUAGES C CXX) find_package(Qt5 REQUIRED COMPONENTS Core Gui Widgets) add_subdirectory(external/OpenMesh) +add_subdirectory(external/Eigen) add_executable(${PROJECT_NAME}) target_sources(${PROJECT_NAME} PRIVATE @@ -24,7 +25,8 @@ target_sources(${PROJECT_NAME} PRIVATE src/util.h) target_link_libraries(${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Gui Qt5::Widgets - OpenMeshCore) + OpenMeshCore + eigen) target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11) set_target_properties(${PROJECT_NAME} PROPERTIES AUTOMOC ON diff --git a/external/Eigen/CMakeLists.txt b/external/Eigen/CMakeLists.txt new file mode 100644 index 0000000..38708b2 --- /dev/null +++ b/external/Eigen/CMakeLists.txt @@ -0,0 +1,10 @@ +cmake_minimum_required(VERSION 3.15) + +include(FetchContent) + +FetchContent_Declare( + Eigen + URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz + URL_HASH MD5=4c527a9171d71a72a9d4186e65bea559) + +FetchContent_MakeAvailable(Eigen)