Created
September 2, 2019 17:38
-
-
Save mcihad/9172eb07c25f46bcccc4592baec74e4a to your computer and use it in GitHub Desktop.
SDL CMakeLists
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.14) | |
project(cppproje) | |
find_package(OpenGL REQUIRED) | |
find_package(GLUT REQUIRED) | |
find_package(SDL2 REQUIRED) | |
include_directories(${SDL2_INCLUDE_DIRS} ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} ) | |
set(CMAKE_CXX_STANDARD 17) | |
add_executable(cppproje main.cpp) | |
target_link_libraries(cppproje ${SDL2_LIBRARIES} ${OPENGL_LIBRARIES} ${GLUT_LIBRARY} ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment