Changes to CMakeLists.txt files. Based on CMake warnings, increased the minimum required cmake version to 3.10 from 3.8. Modified the GTE_MINOR_VERSION to 2.
22 lines
536 B
CMake
22 lines
536 B
CMake
if(COMMAND cmake_policy)
|
|
# Allow VERSION in the project() statement.
|
|
cmake_policy(SET CMP0048 NEW)
|
|
endif()
|
|
|
|
cmake_minimum_required(VERSION 3.10)
|
|
|
|
set(GTE_VERSION_MAJOR 8)
|
|
set(GTE_VERSION_MINOR 2)
|
|
set(PROJECT_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
|
|
|
project(GTE VERSION ${GTE_VERSION_MAJOR}.${GTE_VERSION_MINOR})
|
|
|
|
add_subdirectory(Applications)
|
|
add_subdirectory(Graphics)
|
|
add_subdirectory(Mathematics)
|
|
add_subdirectory(MathematicsGPU)
|
|
|
|
option(BUILD_SAMPLES "Build Samples" OFF)
|
|
if(BUILD_SAMPLES)
|
|
add_subdirectory(Samples)
|
|
endif() |