Computergraphik_Hopp/Code/CMakeLists.txt

20 lines
867 B
CMake

cmake_minimum_required (VERSION 3.8)
if (CMAKE_COMPILER_IS_GNU)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra")
endif()
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
add_executable (hello_world hello_world/helloWorld.c)
target_include_directories(hello_world PRIVATE ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
target_link_libraries(hello_world ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
add_executable (culling box/template_culling.c)
target_include_directories(culling PRIVATE ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
target_link_libraries(culling ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
add_executable (koordinatensystem box/template_koordinatensystemUndPunkte.c)
target_include_directories(koordinatensystem PRIVATE ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
target_link_libraries(koordinatensystem ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})