Skip to content

Instantly share code, notes, and snippets.

@BalintCsala
Created November 9, 2019 18:03
Show Gist options
  • Save BalintCsala/2b1a8d0e413afb5e4969724ccab6f9f1 to your computer and use it in GitHub Desktop.
Save BalintCsala/2b1a8d0e413afb5e4969724ccab6f9f1 to your computer and use it in GitHub Desktop.
cmake_minimum_required(VERSION 3.12)
project(mertanihely C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(SDL2_gfx REQUIRED)
find_package(SDL2_ttf REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS})
add_executable(mertanihely main.c)
target_link_libraries(mertanihely ${SDL2_LIBRARY} ${SDL2_IMAGE_LIBRARIES} ${SDL2_GFX_LIBRARY} ${SDL2_TTF_LIBRARY})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment