Nivel TALAN
This commit is contained in:
1 parent
f9f1c5c3ec
commit
95a1231c63
7 files changed
+1349
-3204
No files matched your search
@@ -1,36 +1,8 @@
|
||||
# Disable raylib examples/games and include FetchContent
|
||||
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
set(BUILD_GAMES OFF CACHE BOOL "" FORCE)
|
||||
include(FetchContent)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
# Declare and make raylib available
|
||||
FetchContent_Declare(
|
||||
raylib
|
||||
GIT_REPOSITORY "https://github.com/raysan5/raylib.git"
|
||||
GIT_TAG "master"
|
||||
GIT_PROGRESS TRUE
|
||||
pkg_check_modules(RAYLIB REQUIRED IMPORTED_TARGET raylib)
|
||||
|
||||
add_exe_module(
|
||||
A4B1
|
||||
DEPENDS PkgConfig::RAYLIB
|
||||
)
|
||||
|
||||
# 2. Descargar Pugixml (Lector de XML/SVG)
|
||||
FetchContent_Declare(
|
||||
pugixml
|
||||
GIT_REPOSITORY "https://github.com/zeux/pugixml.git"
|
||||
GIT_TAG "v1.14" # Versión estable
|
||||
GIT_PROGRESS TRUE
|
||||
)
|
||||
|
||||
# 1. Save the local PLATFORM variable
|
||||
set(ORIGINAL_PLATFORM "${PLATFORM}")
|
||||
|
||||
# 2. Override the local variable to "Desktop" (This shadows the cache and hides "linux" from raylib)
|
||||
set(PLATFORM "Desktop")
|
||||
|
||||
# 3. Configure raylib
|
||||
FetchContent_MakeAvailable(raylib pugixml)
|
||||
|
||||
# 4. Restore your project's local PLATFORM variable back to "linux"
|
||||
set(PLATFORM "${ORIGINAL_PLATFORM}")
|
||||
|
||||
|
||||
add_exe_module(pacman OUTPUT_NAME "Pacman")
|
||||
target_link_libraries(pacman PRIVATE raylib pugixml)
|
||||
Reference in new issue
Block a user