From 44502d3cc6d9106546fe812955b0ade3fc3351d1 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Sun, 31 Dec 2023 16:01:03 +0100 Subject: [PATCH] snap --- CMakeLists.txt | 2 +- app/CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 12 +++++++++--- src/Dummy.cpp | 4 ++++ 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 src/Dummy.cpp diff --git a/CMakeLists.txt b/CMakeLists.txt index 1b67fb8..807bdb7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ FetchContent_Declare( ) FetchContent_MakeAvailable(eigen) -include_directories(${PROJECT_SOURCE_DIR}/include) +include_directories(${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/Geometry) add_subdirectory(src) diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index c5a8f51..c5c5918 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -1,3 +1,3 @@ -add_executable(Geometry main.cpp) +add_executable(app main.cpp) -target_link_libraries(Geometry PUBLIC Eigen3::Eigen) +target_link_libraries(app PUBLIC Eigen3::Eigen) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8009f94..a18cecd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,12 @@ -set(HEADER_LIST "${Geometry_SOURCE_DIR}/include/Geometry/dummy.h") +set(HEADER_LIST "${Geometry_SOURCE_DIR}/Geometry/dummy.h") + +add_library(Geometry Dummy.cpp ${HEADER_LIST}) + +target_include_directories(Geometry PUBLIC "${PROJECT_SOURCE_DIR}/include" "${PROJECT_SOURCE_DIR}/Geometry") + source_group( - TREE "${PROJECT_SOURCE_DIR}/include" + TREE "${PROJECT_SOURCE_DIR}/Geometry" PREFIX "Header Files" FILES ${HEADER_LIST} -) \ No newline at end of file +) + diff --git a/src/Dummy.cpp b/src/Dummy.cpp new file mode 100644 index 0000000..400c59a --- /dev/null +++ b/src/Dummy.cpp @@ -0,0 +1,4 @@ +// +// Created by nb on 31.12.23. +// +#include "dummy.h" \ No newline at end of file