blob: 91ef6c9cf40f2db8749b7822e5db05351a856275 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
cmake_minimum_required(VERSION 3.0)
project(raylib_template C)
set(CMAKE_C_STANDARD 99)
# Setting parameters for raylib
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
add_subdirectory(libs/raylib)
add_executable(${CMAKE_PROJECT_NAME} src/main.c)
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE raylib)
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC ASSET_PATH="${CMAKE_CURRENT_SOURCE_DIR}/assets/")
|