cmake_minimum_required(VERSION 3.4)
project(tinyspline)

# Turn on folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

add_subdirectory(src)
add_definitions("${TINYSPLINE_DEFINITIONS}")
add_subdirectory(examples)
add_subdirectory(test)
add_subdirectory(docs)

cmake_minimum_required(VERSION 3.4)
project(tinyspline)

# Turn on folders
set_property(GLOBAL PROPERTY USE_FOLDERS ON)

option(TINYSPLINE_BUILD_EXAMPLES "Build TinySpline tests." ON)
option(TINYSPLINE_BUILD_TESTS "Build TinySpline tests." ON)
option(TINYSPLINE_BUILD_DOCS "Build TinySpline docs." ON)

add_subdirectory(src)
add_definitions("${TINYSPLINE_DEFINITIONS}")
if(TINYSPLINE_BUILD_EXAMPLES)
    add_subdirectory(examples)
endif()
if(TINYSPLINE_BUILD_TESTS)
    add_subdirectory(test)
endif()
if(TINYSPLINE_BUILD_DOCS)
    add_subdirectory(docs)
endif()

Add options to conditionally build examples/tests/docs
Add options to conditionally build examples/tests/docs
