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:
Ahmad Fatoum
2018-07-29 18:23:23 +02:00
parent 548dbeb1ca
commit e82505b873
3 changed files with 100 additions and 1 deletions

View File

@@ -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")