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