This commit is contained in:
Karl-Wilfried Zimmer 2023-12-31 16:01:03 +01:00
parent f574b0abe1
commit 44502d3cc6
4 changed files with 16 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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}
)
)

4
src/Dummy.cpp Normal file
View File

@ -0,0 +1,4 @@
//
// Created by nb on 31.12.23.
//
#include "dummy.h"