add sdl config.

This commit is contained in:
amass 2024-11-23 13:45:18 +08:00
parent c7a25b5769
commit 872d633a13

View File

@ -5,6 +5,7 @@ project(LvglApplication)
find_package(SDL2 REQUIRED) find_package(SDL2 REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -s USE_SDL=2") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -s USE_SDL=2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -s USE_SDL=2")
# 使使wasm # 使使wasm
set(CMAKE_EXECUTABLE_SUFFIX ".html") set(CMAKE_EXECUTABLE_SUFFIX ".html")