mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-11 22:18:54 +01:00
CMake based build system.
Some people might find this handly
This commit is contained in:
committed by
Benjamin N. summerton
parent
0fc1323c80
commit
e173db19f7
16
CMakeLists.txt
Normal file
16
CMakeLists.txt
Normal file
@ -0,0 +1,16 @@
|
||||
cmake_minimum_required(VERSION 3.0)
|
||||
|
||||
# Config options
|
||||
set(BUILD_EXAMPLES ON CACHE BOOL "Build the examples.")
|
||||
set(BUILD_GAMES ON CACHE BOOL "Build the example games.")
|
||||
|
||||
add_subdirectory(src release)
|
||||
|
||||
if (${BUILD_EXAMPLES})
|
||||
add_subdirectory(examples)
|
||||
endif()
|
||||
|
||||
if (${BUILD_GAMES})
|
||||
add_subdirectory(games)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user