Skip to content

Instantly share code, notes, and snippets.

@jseteny
Last active July 19, 2020 10:13
Show Gist options
  • Save jseteny/cf07b8fd950d5010a8eef5bdf2b9b85d to your computer and use it in GitHub Desktop.
Save jseteny/cf07b8fd950d5010a8eef5bdf2b9b85d to your computer and use it in GitHub Desktop.
# Windows 10 raylib mingw CMakeLists.txt for building any raylib example from the link below
# https://www.raylib.com/examples.html
cmake_minimum_required(VERSION 3.16)
project(untitled C)
set(CMAKE_C_STANDARD 11)
set(CMAKE_LIBRARY_PATH "C:\\raylib\\mingw\\i686-w64-mingw32\\lib")
include_directories(C:\\raylib\\mingw\\i686-w64-mingw32\\include)
link_directories(${CMAKE_LIBRARY_PATH})
add_executable(untitled main.c)
target_link_libraries(untitled raylib Winmm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment