forked from tsteinholz/Last-Stand-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
141 lines (108 loc) · 5.81 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
##/-----------------------------------------------------------------------------------------------------------------/##
##/ /##
##/ ______________________________________ /##
##/ ________| |_______ /##
##/ \ | This file is a part of the | / /##
##/ \ | Last Stand Studio Game Engine | / /##
##/ / |______________________________________| \ /##
##/ /__________) (_________\ /##
##/ /##
##/ Copyright Last Stand Studio 2015 /##
##/ /##
##/ The Last Stand Gaming Engine is free software: you can redistribute it and/or modify /##
##/ it under the terms of the GNU General Public License as published by /##
##/ the Free Software Foundation, either version 3 of the License, or /##
##/ (at your option) any later version. /##
##/ /##
##/ The Last Stand Gaming Engine is distributed in the hope that it will be useful, /##
##/ but WITHOUT ANY WARRANTY; without even the implied warranty of /##
##/ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the /##
##/ GNU General Public License for more details. /##
##/ /##
##/ You should have received a copy of the GNU General Public License /##
##/ along with The Last Stand Gaming Engine. If not, see <http://www.gnu.org/licenses/>. /##
##/ /##
##/ /##
##/-----------------------------------------------------------------------------------------------------------------/##
cmake_minimum_required ( VERSION 3.0 )
project ( Last_Stand_Engine )
# Compile for C++11
list( APPEND CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} -g -ftest-coverage -fprofile-arcs")
# Set the current engine version
set ( Last_Stand_Engine_VERSION_MAJOR 0 )
set ( Last_Stand_Engine_VERSION_MINOR 0 )
#TODO Organize source code list in alpha order. (after v1 release)
# All of the source code in the project (that will be compiled)
set (LS_SOURCE_CODE
Source/LSEngine.h
######### - Classes - #########
Source/main.cpp
Source/main.h
Source/Audio/AudioManager.cpp
Source/Audio/AudioManager.h
Source/Core/Universe.cpp
Source/Core/Universe.h
Source/Core/Manager.cpp
Source/Core/Manager.h
Source/Core/GlobalSettings.cpp
Source/Core/GlobalSettings.h
Source/Graphics/Actors/OrthographicCamera.cpp
Source/Graphics/Actors/OrthographicCamera.h
Source/Graphics/Actors/PerspectiveCamera.cpp
Source/Graphics/Actors/PerspectiveCamera.h
Source/Graphics/Actors/Actor2D.cpp
Source/Graphics/Actors/Actor2D.h
Source/Graphics/Actors/Actor3D.cpp
Source/Graphics/Actors/Actor3D.h
Source/Input/InputManager.cpp
Source/Input/InputManager.h
Source/Math/Math.cpp
Source/Math/Math.h
Source/Math/Matrix.cpp
Source/Math/Matrix.h
Source/Math/Plane.cpp
Source/Math/Plane.h
Source/Math/Quaternion.cpp
Source/Math/Quaternion.h
Source/Math/Vector2.cpp
Source/Math/Vector2.h
Source/Math/Vector3.cpp
Source/Math/Vector3.h
Source/Math/Vector4.cpp
Source/Math/Vector4.h
Source/Networking/NetworkManager.cpp
Source/Networking/NetworkManager.cpp
Source/Utils/Utils.h
Source/Utils/Utils.cpp
Source/Files/File.cpp
Source/Files/File.h
######### - Headers - #########
Source/Utils/FileUtils.h
Source/Utils/Log.h
Source/Utils/StringUtils.h
######### - Interfaces - #########
Source/Graphics/IRenderable3D.h
Source/Graphics/IRenderable2D.h
Source/Core/IManages.h
######### - JSONCPP - #########
Source/Files/jsoncpp.cpp
Source/Files/json/json.h
Source/Files/json/json-forwards.h
)
# What will be included in client projects
add_library ( -LastStandEngine ${LS_SOURCE_CODE} )
# Used to test build
add_executable( LastStandEngineDemo ${LS_SOURCE_CODE} )
# Includes SDL2
if ( WIN32 )
target_link_libraries( -LastStandEngine Dependencies/bin/x64/SDL2.dll)
include_directories ( Dependencies/include )
else ()
link_directories ( /usr/include )
include ( FindPkgConfig )
pkg_search_module ( SDL2 REQUIRED sdl2 )
include_directories ( ${SDL2_INCLUDE_DIRS} )
# Includes SDL2 with the build files
target_link_libraries ( -LastStandEngine ${SDL2_LIBRARIES} )
endif ()
target_link_libraries ( LastStandEngineDemo -LastStandEngine )