migrant a SDL3
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# CMakeLists.txt
|
||||
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(coffee_crisis_arcade_edition VERSION 0.01)
|
||||
project(coffee_crisis_arcade_edition VERSION 2.00)
|
||||
|
||||
# Establece las políticas
|
||||
cmake_policy(SET CMP0072 NEW)
|
||||
@@ -31,18 +31,18 @@ if(NOT SOURCES)
|
||||
message(FATAL_ERROR "No se encontraron archivos fuente en ${DIR_SOURCES}. Verifica que el directorio existe y contiene archivos .cpp.")
|
||||
endif()
|
||||
|
||||
# Configuración de SDL2
|
||||
find_package(SDL2 REQUIRED)
|
||||
if(SDL2_FOUND)
|
||||
message(STATUS "SDL2 encontrado: ${SDL2_INCLUDE_DIRS}")
|
||||
include_directories(${SDL2_INCLUDE_DIRS})
|
||||
link_directories(${SDL2_LIBDIR})
|
||||
# Configuración de SDL3
|
||||
find_package(SDL3 REQUIRED)
|
||||
if(SDL3_FOUND)
|
||||
message(STATUS "SDL3 encontrado: ${SDL3_INCLUDE_DIRS}")
|
||||
include_directories(${SDL3_INCLUDE_DIRS})
|
||||
link_directories(${SDL3_LIBDIR})
|
||||
else()
|
||||
message(FATAL_ERROR "SDL2 no encontrado")
|
||||
message(FATAL_ERROR "SDL3 no encontrado")
|
||||
endif()
|
||||
|
||||
# Incluye rutas de SDL2 obtenidas con pkg-config
|
||||
include_directories(/usr/local/include /usr/local/include/SDL2)
|
||||
# Incluye rutas de SDL3 obtenidas con pkg-config
|
||||
include_directories(/usr/local/include /usr/local/include/SDL3)
|
||||
link_directories(/usr/local/lib)
|
||||
|
||||
# Definir las bibliotecas comunes
|
||||
|
||||
Reference in New Issue
Block a user