Skip to content

Instantly share code, notes, and snippets.

@unalkalkan
Created July 13, 2018 15:52
Show Gist options
  • Save unalkalkan/70baf2f5075c0e9eea7df41bbe68b2eb to your computer and use it in GitHub Desktop.
Save unalkalkan/70baf2f5075c0e9eea7df41bbe68b2eb to your computer and use it in GitHub Desktop.
A simple CMakeLists file for SDL2 development
cmake_minimum_required(VERSION 3.7)
project(SDL2Boilerplate)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(SDL2Boilerplate main.cpp)
target_link_libraries(SDL2Boilerplate ${SDL2_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment