From f21f0adbd1e02c2c6dd57d62dd67617fa24bc752 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 31 Dec 2023 16:18:33 +0100 Subject: [PATCH] running after restruct --- CMakeLists.txt | 2 +- apps/CMakeLists.txt | 2 +- apps/main.cpp | 9 +-------- include/Geometry/dummy.h | 2 ++ include/main.h | 2 -- src/CMakeLists.txt | 4 +++- src/Dummy.cpp | 14 +++++++++++++- 7 files changed, 21 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5df1ca7..957f3ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(eigen) -include_directories(${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/Geometry) +#include_directories(${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/Geometry) add_subdirectory(src) diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index c5c5918..85887dd 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -1,3 +1,3 @@ add_executable(app main.cpp) -target_link_libraries(app PUBLIC Eigen3::Eigen) +target_link_libraries(app PUBLIC Eigen3::Eigen Geometry) diff --git a/apps/main.cpp b/apps/main.cpp index ae97491..e5c5973 100644 --- a/apps/main.cpp +++ b/apps/main.cpp @@ -1,15 +1,8 @@ +#include "Geometry/dummy.h" #include "main.h" - int main(){ cout<<"Hello World"< +#include + +using namespace std; + +void eigenExample(){ + Eigen::MatrixXd m(2,2); + m(1,0) = 2.5; + m(0,1) = -1; + m(1,1) = m(1,0) + m(0,1); + cout << m << endl; +} \ No newline at end of file