From d9d6534b40c6ccf7da19f5fb24aa099ea5b65743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Mon, 18 Oct 2021 14:32:00 +0200 Subject: [PATCH] added CMake files --- CMakeLists.txt | 10 ++++++++++ src/CMakeLists.txt | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 CMakeLists.txt create mode 100644 src/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..a18d9cc --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,10 @@ +#debian stable (currently bullseye) +cmake_minimum_required(VERSION 3.18) + +project(Diffusion CXX) + +set(CMAKE_CXX_STANDARD 14) + +find_package(Eigen3 REQUIRED NO_MODULE) + +add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..07b3c8d --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,2 @@ +add_library(diffusion OBJECT diffusion.cpp) +target_link_libraries(diffusion Eigen3::Eigen)