From 872d633a13f9f54ff0da2f887e58ce667a94834a Mon Sep 17 00:00:00 2001 From: amass Date: Sat, 23 Nov 2024 13:45:18 +0800 Subject: [PATCH] add sdl config. --- LvglApplication/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/LvglApplication/CMakeLists.txt b/LvglApplication/CMakeLists.txt index 8c66e85..413ca21 100644 --- a/LvglApplication/CMakeLists.txt +++ b/LvglApplication/CMakeLists.txt @@ -5,6 +5,7 @@ project(LvglApplication) find_package(SDL2 REQUIRED) 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 set(CMAKE_EXECUTABLE_SUFFIX ".html")