Explorar el Código

Update CMakeLists.txt

Changes required to make possible building raylib for web on Windows 10.
pull/4044/head
Lázaro Albuquerque hace 1 año
cometido por GitHub
padre
commit
3e7912144e
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: B5690EEEBB952194
Se han modificado 1 ficheros con 6 adiciones y 6 borrados
  1. +6
    -6
      src/CMakeLists.txt

+ 6
- 6
src/CMakeLists.txt Ver fichero

@ -42,11 +42,6 @@ if (NOT ${PLATFORM} MATCHES "Web")
include(GlfwImport)
endif ()
# Sets additional platform options and link libraries for each platform
# also selects the proper graphics API and version for that platform
# Produces a variable LIBS_PRIVATE that will be used later
include(LibraryConfigurations)
if (USE_AUDIO)
MESSAGE(STATUS "Audio Backend: miniaudio")
list(APPEND raylib_sources raudio.c)
@ -57,6 +52,11 @@ endif ()
add_library(raylib ${raylib_sources} ${raylib_public_headers})
# Sets additional platform options and link libraries for each platform
# also selects the proper graphics API and version for that platform
# Produces a variable LIBS_PRIVATE that will be used later
include(LibraryConfigurations)
if (NOT BUILD_SHARED_LIBS)
MESSAGE(STATUS "Building raylib static library")
add_library(raylib_static ALIAS raylib)
@ -69,7 +69,7 @@ else()
endif()
if (${PLATFORM} MATCHES "Web")
target_link_options(raylib PRIVATE "-sUSE_GLFW=3")
target_link_options(raylib INTERFACE "-sUSE_GLFW=3" "-sASSERTIONS=1")
endif()
set_target_properties(raylib PROPERTIES

Cargando…
Cancelar
Guardar