Fix CMake config for clay-official-website example

This commit is contained in:
Nic Barker 2024-08-29 08:59:41 +12:00
parent ca2c625bb5
commit 24d4c5e553
2 changed files with 6 additions and 7 deletions

View File

@ -9,9 +9,3 @@ target_compile_options(clay_official_website PUBLIC -Wno-initializer-overrides)
target_include_directories(clay_official_website PUBLIC .)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
add_custom_command(
TARGET clay_official_website POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory
${CMAKE_CURRENT_SOURCE_DIR}/resources
${CMAKE_CURRENT_BINARY_DIR}/resources)

View File

@ -411,3 +411,8 @@ CLAY_WASM_EXPORT("UpdateDrawFrame") Clay_RenderCommandArray UpdateDrawFrame(floa
return CreateLayout(animationLerpValue < 0 ? (animationLerpValue + 1) : (1 - animationLerpValue));
//----------------------------------------------------------------------------------
}
// Dummy main() to please cmake - TODO get wasm working with cmake on this example
int main() {
return 0;
}