From dc3d98ab47fefc8388455dbbd4d330e81499d95a Mon Sep 17 00:00:00 2001 From: BoredGuy Date: Thu, 24 Jul 2025 20:37:56 -0700 Subject: Initial Commit --- CMakeLists.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 CMakeLists.txt (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..6c10168 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,26 @@ +cmake_minimum_required(VERSION 3.15) +project(MyBeatemup VERSION 0.0.1 LANGUAGES C) + +set(CMAKE_C_STANDARD 11) +set(CMAKE_C_STANDARD_REQUIRED ON) + +find_package(raylib REQUIRED) + +add_executable(game + "include/game.h" + "include/constants.h" + + "src/game.c" + "src/main.c" +) + +target_include_directories(game PRIVATE "include") +target_link_libraries(game raylib) + +if (UNIX) + target_link_libraries(game m) +endif() + +if (MSVC) + target_link_libraries(game winmm) +endif() \ No newline at end of file -- cgit v1.2.3