mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-09 19:36:33 +00:00
Add projects/CMake example
The CMakeLists.txt checks for an installed raylib and downloads and installs one if none is found. Afterwards, it builds core_basic_window.c
This commit is contained in:
@@ -43,7 +43,7 @@ if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" AND "${PLATFORM}" MAT
|
||||
list(APPEND raylib_sources $<TARGET_OBJECTS:glfw_objlib>)
|
||||
else()
|
||||
MESSAGE(STATUS "Using external GLFW")
|
||||
set(GLFW_PKG_DEPS glfw)
|
||||
set(GLFW_PKG_DEPS glfw3)
|
||||
endif()
|
||||
|
||||
add_definitions("-DRAYLIB_CMAKE=1")
|
||||
|
Reference in New Issue
Block a user