aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-03-02 09:44:19 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-03-02 09:44:19 +0100
commit879fb2adefadbc5f38711cd8f01bcc4cee053e3d (patch)
tree63d9841f0dd321978714dd5839cb6f8c3c8df57e /CMakeLists.txt
parent2f345b1d6e130177efe4fa47d5b2bd11f352ce85 (diff)
i hate cmake, g++, ld, collect2, cc1, x86_64-w64-mingw32
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt48
1 files changed, 48 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..d47afaa
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,48 @@
+cmake_minimum_required(VERSION 3.16)
+project(Arena VERSION 1.0.0)
+
+set (CMAKE_C_FLAGS "--std=c11 ${CMAKE_C_FLAGS}")
+
+set(CMAKE_CXX_STANDARD 11)
+set(CMAKE_CXX_STANDARD_REQUIRED YES)
+set(CMAKE_CXX_EXTENSIONS OFF)
+
+set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/build)
+
+add_executable(Arena
+ render/button.c
+ render/button.h
+ render/graphicsettings.h
+ render/render_text.c
+ render/render_text.h
+ mkb/mkb.c
+ mkb/mkb.h
+ gst/info.h
+ gst/info.c
+ gst/fxs.c
+ gst/fxs.h
+ gst/gst.c
+ gst/gst.h
+ gst/map.c
+ gst/map.h
+ gst/units.c
+ gst/units.h
+ hud/hud.c
+ hud/hud.h
+ hud/hud_views.c
+ hud/hud_views.h
+ json/jsmn.h
+ json/jsonparse.c
+ json/jsonparse.h
+ net/net.c
+ net/net.h
+ umath/vec.c
+ umath/vec.h
+ umath/intersect.c
+ umath/intersect.h
+ main.c)
+
+target_include_directories(Arena PUBLIC "C:/MinGW_libs/include")
+target_include_directories(Arena PUBLIC "C:/MinGW_libs/include/plibsys")
+target_link_libraries(Arena -LC:/MinGW_libs/lib)
+target_link_libraries(Arena -lSDL2main -lSDL2 -lSDL2_mixer -lplibsys) \ No newline at end of file