2019-09-24 09:34:53 +02:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
2019-11-01 18:22:43 +01:00
|
|
|
|
|
|
|
if(DEFINED ENV{VCPKG_ROOT})
|
|
|
|
set(VCPKG_TARGET_TRIPLET "x64-windows")
|
|
|
|
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
|
|
|
|
set(CMAKE_TOOLCHAIN_FILE "$ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
|
|
|
|
CACHE STRING "")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2019-09-24 09:34:53 +02:00
|
|
|
project(tests_opengl)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
find_package(GLUT REQUIRED)
|
|
|
|
|
2019-11-02 16:25:02 +01:00
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(example)
|