add eigen dep
This commit is contained in:
parent
d76d891fca
commit
c664ee1b8a
@ -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
|
||||
|
10
external/Eigen/CMakeLists.txt
vendored
Normal file
10
external/Eigen/CMakeLists.txt
vendored
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user