diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
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() |