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