diff --git a/examples/clay-official-website/CMakeLists.txt b/examples/clay-official-website/CMakeLists.txt index f8b7104..f3fd7f8 100644 --- a/examples/clay-official-website/CMakeLists.txt +++ b/examples/clay-official-website/CMakeLists.txt @@ -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) \ No newline at end of file +set(CMAKE_CXX_FLAGS_RELEASE "-O3") \ No newline at end of file diff --git a/examples/clay-official-website/main.c b/examples/clay-official-website/main.c index 60eafab..009f50f 100644 --- a/examples/clay-official-website/main.c +++ b/examples/clay-official-website/main.c @@ -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; } \ No newline at end of file