-
-
Notifications
You must be signed in to change notification settings - Fork 202
/
CMakeLists.txt
27 lines (24 loc) · 741 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.12)
project(tinyspline)
# Turn on folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
option(TINYSPLINE_BUILD_EXAMPLES "Build TinySpline examples." ON)
option(TINYSPLINE_BUILD_TESTS "Build TinySpline tests." ON)
option(TINYSPLINE_BUILD_DOCS "Build TinySpline documentation." ON)
if(NOT DEFINED TINYSPLINE_OUTPUT_DIRECTORY)
set(TINYSPLINE_OUTPUT_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}/lib
CACHE INTERNAL ""
)
endif()
add_subdirectory(src)
if(TINYSPLINE_BUILD_EXAMPLES)
add_subdirectory(examples)
endif()
if(TINYSPLINE_BUILD_TESTS)
include(CTest) # Must be included in top-level CMakeLists.txt.
add_subdirectory(test)
endif()
if(TINYSPLINE_BUILD_DOCS)
add_subdirectory(docs)
endif()