Skip to content

Instantly share code, notes, and snippets.

@nemethdani
Forked from bokrosbalint/CMakeLists.txt
Last active March 14, 2021 17:56
Show Gist options
  • Save nemethdani/6b59c7fb8b64966b1e93ef6d96d7f6ad to your computer and use it in GitHub Desktop.
Save nemethdani/6b59c7fb8b64966b1e93ef6d96d7f6ad to your computer and use it in GitHub Desktop.
grafhazi cmake
cmake_minimum_required(VERSION 3.5)
project(grafhazi)
set(SOURCE_FILES grafhazi.cpp framework.cpp)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(GLEW REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} ${GLEW_INCLUDE_DIRS})
link_libraries(${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ${GLEW_LIBRARIES})
add_executable(grafhazi ${SOURCE_FILES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment