From f2c9bf2cb7dfe9cc1ae9e32a691257c2409a6ee3 Mon Sep 17 00:00:00 2001 From: Nic Barker Date: Wed, 9 Apr 2025 13:33:34 +1200 Subject: [PATCH] Windows support for sokol_corner_radius --- examples/sokol-corner-radius/CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/sokol-corner-radius/CMakeLists.txt b/examples/sokol-corner-radius/CMakeLists.txt index 92e1210..cf8997b 100644 --- a/examples/sokol-corner-radius/CMakeLists.txt +++ b/examples/sokol-corner-radius/CMakeLists.txt @@ -1,5 +1,10 @@ cmake_minimum_required(VERSION 3.27) project(sokol_corner_radius C) -add_executable(sokol_corner_radius main.c) -target_link_libraries(sokol_corner_radius PUBLIC sokol) +if(CMAKE_SYSTEM_NAME STREQUAL Windows) + add_executable(sokol_corner_radius WIN32 main.c) + set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT sokol_corner_radius) +else() + add_executable(sokol_corner_radius main.c) +endif() +target_link_libraries(sokol_corner_radius PUBLIC sokol) \ No newline at end of file