Skip to content

Instantly share code, notes, and snippets.

@BalintCsala
Created November 9, 2019 17:57
Show Gist options
  • Save BalintCsala/1926f728c0fc46a26507561529e3d91a to your computer and use it in GitHub Desktop.
Save BalintCsala/1926f728c0fc46a26507561529e3d91a to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.12)
project(<projekt_nev> C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(SDL2 REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(<projekt_nev> main.c)
target_link_libraries(<projekt_nev> ${SDL2_LIBRARY})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment