2019-09-24 09:34:53 +02:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(tests_opengl)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
|
|
|
|
find_package(OpenGL REQUIRED)
|
|
|
|
find_package(GLUT REQUIRED)
|
|
|
|
|
|
|
|
if(NOT ${OPENGL_GLU_FOUND})
|
|
|
|
message(FATAL_ERROR "Glu not installed!")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_executable(tests_opengl
|
2019-09-25 00:36:57 +02:00
|
|
|
src/main.cpp src/displayers.h src/displayers.cpp src/Texture.cpp src/Texture.h)
|
2019-09-24 09:34:53 +02:00
|
|
|
|
|
|
|
target_link_libraries(tests_opengl
|
|
|
|
${OPENGL_LIBRARIES}
|
|
|
|
${GLUT_LIBRARIES})
|
|
|
|
|
|
|
|
target_include_directories(tests_opengl PRIVATE
|
|
|
|
${OPENGL_INCLUDE_DIR}
|
|
|
|
${GLUT_INCLUDE_DIR})
|