summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
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