From 141287e361f45f47cdf93aecf0b2d93620c01020 Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Mon, 22 Sep 2025 10:02:53 +0300 Subject: Initial Commit --- CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..4eae662 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,20 @@ +cmake_minimum_required(VERSION 3.15) +project("Hole In 321" VERSION 1.0.0 LANGUAGES C CXX) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED ON) + +find_package(Threads REQUIRED) +find_package(SDL3 REQUIRED) +find_package(Dawn REQUIRED) + +add_executable(game + "src/main.c" +) + +target_link_libraries(game SDL3::SDL3 dawn::webgpu_dawn) + +if (UNIX) + target_compile_options(game PRIVATE "-g") + target_link_libraries(game m) +endif() -- cgit v1.2.3