restructuring
This commit is contained in:
parent
fa806f62fa
commit
daff1528cb
@ -1,6 +1,10 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(Geometry)
|
||||
project(Geometry VERSION 0.1 LANGUAGES CXX)
|
||||
|
||||
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
endif ()
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
@ -8,8 +12,6 @@ include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
add_subdirectory(lib/eigen)
|
||||
|
||||
add_executable(Geometry main.cpp)
|
||||
add_subdirectory(src)
|
||||
|
||||
target_link_libraries(Geometry PUBLIC Eigen3::Eigen)
|
||||
|
||||
target_include_directories(Geometry PUBLIC "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/lib/eigen/Eigen")
|
||||
add_subdirectory(app)
|
5
app/CMakeLists.txt
Normal file
5
app/CMakeLists.txt
Normal file
@ -0,0 +1,5 @@
|
||||
add_executable(Geometry main.cpp)
|
||||
|
||||
target_link_libraries(Geometry PUBLIC Eigen3::Eigen)
|
||||
|
||||
target_include_directories(Geometry PUBLIC "${PROJECT_BINARY_DIR}" "${PROJECT_SOURCE_DIR}/lib/eigen/Eigen")
|
6
src/CMakeLists.txt
Normal file
6
src/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
set(HEADER_LIST "${Geometry_SOURCE_DIR}/include/Geometry/dummy.h")
|
||||
source_group(
|
||||
TREE "${PROJECT_SOURCE_DIR}/include"
|
||||
PREFIX "Header Files"
|
||||
FILES ${HEADER_LIST}
|
||||
)
|
Loading…
Reference in New Issue
Block a user