mirror of
https://github.com/QuasarApp/CMake.git
synced 2025-04-26 17:54:43 +00:00
added macros for wasm_32
This commit is contained in:
parent
b0765bd212
commit
93ff4e899e
@ -35,3 +35,4 @@ set(CMAKE_CXX_COMPILER ${EM_CXX} CACHE FILEPATH "CXX Compiller of Wasm" FORCE)
|
||||
|
||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "CXX Compiller of Wasm" FORCE)
|
||||
|
||||
add_definitions( -DWASM32_BUILD )
|
||||
|
@ -39,6 +39,7 @@ function(initWasmSupport name deployFile)
|
||||
if (DEFINED TARGET_PLATFORM_TOOLCHAIN)
|
||||
if (${TARGET_PLATFORM_TOOLCHAIN} STREQUAL "wasm32")
|
||||
message(added deploy step for site)
|
||||
|
||||
set_target_properties(${name} PROPERTIES OUTPUT_NAME "${name}.js")
|
||||
|
||||
addDeployFromFile(${deployFile})
|
||||
|
Loading…
x
Reference in New Issue
Block a user