parent
29aa7ada9c
commit
e7d07b7aeb
|
|
@ -42,6 +42,11 @@ 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)
|
||||
|
|
@ -52,11 +57,6 @@ 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 INTERFACE "-sUSE_GLFW=3" "-sASSERTIONS=1")
|
||||
target_link_options(raylib PRIVATE "-sUSE_GLFW=3")
|
||||
endif()
|
||||
|
||||
set_target_properties(raylib PROPERTIES
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user