mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
Fix CMake config for clay-official-website example
This commit is contained in:
parent
ca2c625bb5
commit
24d4c5e553
@ -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")
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user