Skip to content

Instantly share code, notes, and snippets.

@MaxySpark
Last active December 23, 2016 04:42
Show Gist options
  • Select an option

  • Save MaxySpark/e3419b04632f0c4773bb7a8c87e41898 to your computer and use it in GitHub Desktop.

Select an option

Save MaxySpark/e3419b04632f0c4773bb7a8c87e41898 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.6)
set(PROJECT_NAME "OpenGL_01")
project(${PROJECT_NAME})
set(CMAKE_CXX_STANDARD 11)
set(SOURCE_FILES main.cpp)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment