2023-12-31 15:37:43 +01:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
2023-12-31 14:25:18 +01:00
|
|
|
|
2023-12-31 15:06:43 +01:00
|
|
|
project(Geometry VERSION 0.1 LANGUAGES CXX)
|
|
|
|
|
|
|
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
endif ()
|
2023-12-31 14:25:18 +01:00
|
|
|
|
2023-12-31 14:48:12 +01:00
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
|
2023-12-31 15:37:43 +01:00
|
|
|
include(FetchContent)
|
|
|
|
|
|
|
|
FetchContent_Declare(
|
|
|
|
eigen
|
|
|
|
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
|
|
|
|
GIT_TAG 3.4.0
|
|
|
|
)
|
|
|
|
FetchContent_MakeAvailable(eigen)
|
2023-12-31 14:30:21 +01:00
|
|
|
|
2023-12-31 15:37:43 +01:00
|
|
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
2023-12-31 14:48:12 +01:00
|
|
|
|
2023-12-31 15:06:43 +01:00
|
|
|
add_subdirectory(src)
|
2023-12-31 14:48:12 +01:00
|
|
|
|
2023-12-31 15:06:43 +01:00
|
|
|
add_subdirectory(app)
|