Last active
December 23, 2016 04:42
-
-
Save MaxySpark/e3419b04632f0c4773bb7a8c87e41898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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