-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
83 lines (68 loc) · 1.6 KB
/
CMakeLists.txt
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
cmake_minimum_required(VERSION "3.16")
project("HungaNut")
find_package(Threads REQUIRED)
set(LIBSDL_DIR ${CMAKE_SOURCE_DIR}/ThirdParty/SDL2/lib)
set(LIBBOX2D ${CMAKE_SOURCE_DIR}/ThirdParty/Box2d/lib)
add_library("HungaNut" STATIC
# Core Engine files
"src/Engine.h"
"src/Engine.cpp"
"src/Window.h"
"src/Window.cpp"
"src/Scenes.h"
"src/Scenes.cpp"
# Input & Events
"src/Input/InputManager.h"
"src/Input/InputManager.cpp"
"src/Input/KeyBinds.h"
"src/Input/KeyBoard.h"
"src/Input/Mouse.h"
"src/Events/Event.h"
"src/Events/EventManager.h"
"src/Events/EventManager.cpp"
# Rednering
"src/Renderer/Renderer.h"
"src/Renderer/Renderer.cpp"
#ECS
"src/ECS/Script.h"
"src/ECS/GameObject.h"
"src/ECS/GameObject.cpp"
"src/ECS/ECS.h"
"src/ECS/ECS.cpp"
# API
"src/API/Rendering.h"
"src/API/Rendering.cpp"
"src/API/Input.h"
"src/API/Events.h"
# Logging
"src/Logging/color.h"
"src/Logging/format.h"
"src/Logging/NutLogger.h"
"src/log.h"
# Main Include files
"src/main.h"
"src/HungaNut.h"
)
target_include_directories("HungaNut" PUBLIC
"src"
"ThirdParty/SDL2/include"
"ThridParty/entt/include"
"ThirdParty/Box2d/include"
)
target_link_libraries("HungaNut" PRIVATE
${LIBSDL_DIR}/libSDL2d.a
${LIBSDL_DIR}/libSDL2_image.a
${LIBBOX2D}/libbox2d.a
${CMAKE_DL_LIBS}
Threads::Threads
)
project("Test")
add_executable("Test"
"test/test.cpp"
)
target_link_libraries("Test" PRIVATE
"HungaNut"
)
target_include_directories("Test" PUBLIC
"src"
)