Pārlūkot izejas kodu
Revert "Always use latest raylib version for cmake (#1123 )" (#1126 )
We didn't use the latest version, but a compatible version, which is established by raylib-config-version.cmake.
It's ok to have a minimal version, so revert b7c0d5b6dd
.
pull/1132/head
Ahmad Fatoum
pirms 4 gadiem
committed by
GitHub
vecāks
revīzija
eb6f8bd0ba
Šim parakstam datu bāzē netika atrasta zināma atslēga
GPG atslēgas ID: 4AEE18F83AFDEB23
9 mainītis faili ar
10 papildinājumiem un
10 dzēšanām
examples/CMakeLists.txt
games/CMakeLists.txt
games/drturtle/CMakeLists.txt
games/just_do/CMakeLists.txt
games/koala_seasons/CMakeLists.txt
games/light_my_ritual/CMakeLists.txt
games/skully_escape/CMakeLists.txt
games/wave_collector/CMakeLists.txt
projects/CMake/CMakeLists.txt
@ -96,7 +96,7 @@ endif()
include_directories ( BEFORE SYSTEM others/external/include )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
# D o e a c h e x a m p l e
@ -1,7 +1,7 @@
# S e t u p t h e p r o j e c t a n d s e t t i n g s
project ( games )
# G e t t h e s o u r c e t o g e t h e r
# G e t t h e s o u r c e t o e g h e r
file ( GLOB sources *.c )
set ( OUTPUT_EXT )
@ -18,7 +18,7 @@ if(${PLATFORM} MATCHES "Web")
endif ( )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
# D o e a c h g a m e
@ -4,7 +4,7 @@ project(drturtle)
# E x e c u t a b l e & l i n k i n g
add_executable ( ${ PROJECT_NAME } 06_drturtle_final.c )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
target_link_libraries ( ${ PROJECT_NAME } raylib )
@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# E x e c u t a b l e & l i n k i n g
add_executable ( ${ PROJECT_NAME } ${ PROJECT_NAME } .c ${ screen_sources } )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
target_link_libraries ( ${ PROJECT_NAME } raylib )
@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# E x e c u t a b l e & l i n k i n g
add_executable ( ${ PROJECT_NAME } ${ PROJECT_NAME } .c ${ screen_sources } )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
target_link_libraries ( ${ PROJECT_NAME } raylib )
@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# E x e c u t a b l e & l i n k i n g
add_executable ( ${ PROJECT_NAME } ${ PROJECT_NAME } .c ${ screen_sources } )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
target_link_libraries ( ${ PROJECT_NAME } raylib )
@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# E x e c u t a b l e & l i n k i n g
add_executable ( ${ PROJECT_NAME } skully_escape.c player.c monster.c ${ screen_sources } )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
target_link_libraries ( ${ PROJECT_NAME } raylib )
@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# E x e c u t a b l e & l i n k i n g
add_executable ( ${ PROJECT_NAME } ${ PROJECT_NAME } .c ${ screen_sources } )
if ( NOT TARGET raylib )
find_package ( raylib REQUIRED )
find_package ( raylib 2.0 REQUIRED)
endif ( )
target_link_libraries ( ${ PROJECT_NAME } raylib )
@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+
project ( example )
# S e t t h i s t o t h e m i n i m a l v e r s i o n y o u w a n t t o s u p p o r t
find_package ( raylib QUIET ) # L e t C M a k e s e a r c h f o r a r a y l i b - c o n f i g . c m a k e
find_package ( raylib 2.5 QUIET) # L e t C M a k e s e a r c h f o r a r a y l i b - c o n f i g . c m a k e
# Y o u c o u l d c h a n g e t h e Q U I E T a b o v e t o R E Q U I R E D a n d r e m o v e t h i s if ( ) c l a u s e
# T h i s p a r t d o w n l o a d s r a y l i b a n d b u i l d s i t i f i t ' s n o t i n s t a l l e d o n y o u r s y s t e m