Add raylib
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
5a0cf43dde
commit
9bdccda54b
1014 changed files with 495213 additions and 0 deletions
12
raylib-5.5/cmake/AddIfFlagCompiles.cmake
Normal file
12
raylib-5.5/cmake/AddIfFlagCompiles.cmake
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
include(CheckCCompilerFlag)
|
||||
function(add_if_flag_compiles flag)
|
||||
CHECK_C_COMPILER_FLAG("${flag}" COMPILER_HAS_THOSE_TOGGLES)
|
||||
set(outcome "Failed")
|
||||
if(COMPILER_HAS_THOSE_TOGGLES)
|
||||
foreach(var ${ARGN})
|
||||
set(${var} "${flag} ${${var}}" PARENT_SCOPE)
|
||||
endforeach()
|
||||
set(outcome "compiles")
|
||||
endif()
|
||||
message(STATUS "Testing if ${flag} can be used -- ${outcome}")
|
||||
endfunction()
|
||||
Loading…
Add table
Add a link
Reference in a new issue