This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
79 lines (74 loc) · 2.7 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
cmake_minimum_required(VERSION 3.5)
project(FalconLatinum)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${FalconLatinum_SOURCE_DIR}/cmake")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
INCLUDE(FindSDL2 REQUIRED)
INCLUDE(FindOpenGL REQUIRED)
INCLUDE(FindSDL2_ttf REQUIRED)
INCLUDE(FindSDL2_mixer REQUIRED)
FIND_PACKAGE(GLEW REQUIRED)
FIND_PACKAGE(GLM REQUIRED)
include_directories(
${SDL2_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS}
${SDL2_TTF_INCLUDE_DIRS} ${CEGUI_INCLUDE_DIRS} $(SDL2_MIXER_INCLUDE_DIR)}
${FalconLatinum_SOURCE_DIR}/source/headers ${FalconLatinum_SOURCE_DIR}/src/Shaders)
set(SOURCE_FILES
src/States/StateManager.cpp
src/States/StateManager.h
src/2D/Sprite.cpp
src/2D/Sprite.h
src/GLSL/ShaderProgram.cpp
src/GLSL/ShaderProgram.h
src/Errors/Errors.h
src/Errors/Errors.cpp
src/2D/Vertex.h
src/InputOutput/IOManager.cpp
src/InputOutput/IOManager.h
src/2D/picoPNG.h
src/2D/picoPNG.cpp
src/2D/GLTexture.h
src/2D/ImageLoader/ImageLoader.cpp
src/2D/ImageLoader/ImageLoader.h
src/ResourceManager/ResourceManager.cpp
src/ResourceManager/ResourceManager.h
src/ResourceManager/TextureCache.cpp
src/ResourceManager/TextureCache.h
src/Window/Window.cpp
src/Window/Window.h
src/Init/Falcon.cpp
src/Init/Falcon.h
src/2D/Camera/Camera2D.cpp
src/2D/Camera/Camera2D.h
src/2D/SpriteBatch/SpriteBatch.cpp
src/2D/SpriteBatch/SpriteBatch.h
src/InputOutput/InputManager.cpp
src/InputOutput/InputManager.h
src/Timing/Timing.cpp
src/Timing/Timing.h
src/Object/Projectile.cpp
src/Object/Projectile.h
src/2D/SpriteFont/SpriteFont.cpp
src/2D/SpriteFont/SpriteFont.h
src/Audio/AudioEngine.cpp
src/Audio/AudioEngine.h
src/2D/Particles/ParticleSystem.cpp
src/2D/Particles/ParticleSystem.h
src/2D/Particles/ParticleBatch.cpp
src/2D/Particles/ParticleBatch.h
src/2D/DebugRenderer/DebugRenderer.cpp
src/2D/DebugRenderer/DebugRenderer.h
src/2D/TileSheet.h
src/2D/Lights/BasicLight.cpp
src/2D/Lights/BasicLight.h
src/GUI/GUI.cpp
src/GUI/GUI.h
src/GameIntefaces/IGameScreen.h
src/GameIntefaces/IMainGame.cpp
src/GameIntefaces/IMainGame.h
src/GameIntefaces/ScreenList.cpp
src/GameIntefaces/ScreenList.h
)
add_library(FalconLatinum ${SOURCE_FILES})
target_link_libraries(FalconLatinum
${SDL2_LIBRARY} ${OPENGL_LIBRARIES} ${GLEW_LIBRARIES}
${SDL2_TTF_LIBRARIES} ${SDL2_MIXER_LIBRARY})