aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
blob: fa188572746cbce9298fb7b434032a583ee24b50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
    gst/generate.c
    gst/generate.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
    test/test.c
    test/test.h
    test/test_gst.c
    test/test_gst.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)