mirror of
https://github.com/g-truc/glm.git
synced 2024-11-29 11:24:35 +00:00
24 lines
531 B
CMake
24 lines
531 B
CMake
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
|
|
cmake_policy(VERSION 3.2)
|
|
|
|
set(GLM_VERSION "0.9.9")
|
|
project(glm VERSION ${GLM_VERSION} LANGUAGES CXX)
|
|
|
|
enable_testing()
|
|
|
|
include_directories("${PROJECT_SOURCE_DIR}")
|
|
add_subdirectory(glm)
|
|
|
|
##################################
|
|
# CMake test
|
|
|
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
##################################
|
|
# CMake install / uninstall script
|
|
add_subdirectory(cmake)
|