Skip to content

Instantly share code, notes, and snippets.

@tothandras
Last active August 29, 2015 14:08
Show Gist options
  • Save tothandras/70fc5593d61c702a2f0b to your computer and use it in GitHub Desktop.
Save tothandras/70fc5593d61c702a2f0b to your computer and use it in GitHub Desktop.
CMakeLists.txt for CLion
cmake_minimum_required(VERSION 2.8.12)
project(Grafika_2)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(SOURCE_FILES main.cpp)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
include_directories(${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS})
add_compile_options("-Wno-deprecated-declarations")
add_executable(Grafika_2 ${SOURCE_FILES})
target_link_libraries(Grafika_2 ${OPENGL_LIBRARIES} ${GLUT_LIBRARY})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment