build wasm a build/wasm i output a dist/wasm

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-12 19:57:32 +02:00
parent 555f347375
commit fb023df1e1
2 changed files with 12 additions and 4 deletions

View File

@@ -49,8 +49,11 @@ else()
message(STATUS "SDL3 encontrado: ${SDL3_INCLUDE_DIRS}")
endif()
# Configuración común de salida de ejecutables en el directorio raíz
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
# Configuración de salida de ejecutables
if(NOT EMSCRIPTEN)
# En desktop, el ejecutable va a la raíz del proyecto
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
endif()
# Añadir ejecutable principal
add_executable(${PROJECT_NAME} ${SOURCES})