Base program with rotating pyramids
This commit is contained in:
commit
88e548d058
3 changed files with 145 additions and 0 deletions
22
CMakeLists.txt
Normal file
22
CMakeLists.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
src/main.cpp)
|
||||
|
||||
target_link_libraries(tests_opengl
|
||||
${OPENGL_LIBRARIES}
|
||||
${GLUT_LIBRARIES})
|
||||
|
||||
target_include_directories(tests_opengl PRIVATE
|
||||
${OPENGL_INCLUDE_DIR}
|
||||
${GLUT_INCLUDE_DIR})
|
Loading…
Add table
Add a link
Reference in a new issue