Last active
August 29, 2015 14:08
-
-
Save tothandras/70fc5593d61c702a2f0b to your computer and use it in GitHub Desktop.
CMakeLists.txt for CLion
This file contains 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 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