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

@ -8,10 +8,4 @@ add_executable(clay_official_website main.c)
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)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")

View File

@ -410,4 +410,9 @@ CLAY_WASM_EXPORT("UpdateDrawFrame") Clay_RenderCommandArray UpdateDrawFrame(floa
Clay_UpdateScrollContainers(isTouchDown, (Clay_Vector2) {mouseWheelX, mouseWheelY}, deltaTime);
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;
}