28 lines
568 B
CMake
28 lines
568 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(Geometry VERSION 0.1 LANGUAGES CXX)
|
|
|
|
include(FetchContent)
|
|
|
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
include(CTest)
|
|
endif ()
|
|
|
|
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR GEOMETRY_BUILD_TESTING)
|
|
add_subdirectory(tests)
|
|
endif ()
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
FetchContent_Declare(
|
|
eigen
|
|
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
|
|
GIT_TAG 3.4.0
|
|
)
|
|
FetchContent_MakeAvailable(eigen)
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(apps) |