mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-06 18:06:28 +00:00
CMake: Make the raylib project as a whole embeddable
So user code can use add_subdirectory to build it (similar to what we do with GLFW or what the projects/CMake/CMakeLists.txt can do).
This commit is contained in:
@@ -18,8 +18,8 @@ if (NOT raylib_FOUND) # If there's none, fetch and build raylib
|
||||
set(FETCHCONTENT_QUIET NO)
|
||||
FetchContent_Populate(raylib)
|
||||
|
||||
set(BUILD_EXAMPLES OFF) # don't build the supplied examples
|
||||
set(BUILD_GAMES OFF) # or games
|
||||
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) # don't build the supplied examples
|
||||
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
|
||||
|
||||
# build raylib
|
||||
add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR})
|
||||
|
Reference in New Issue
Block a user