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