-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (39 loc) · 1.39 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
cmake_minimum_required(VERSION 3.9)
project(sdl-book)
#append ./cmake to CMAKE_MODULE_PATH
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
find_package(SDL2 REQUIRED)
find_package(SDL2_image REQUIRED)
find_package(TinyXML REQUIRED)
find_package(ZLIB REQUIRED)
include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS} ${TINYXML_INCLUDE_DIR} ${ZLIB_INCLUDE_DIRS})
set(CMAKE_CXX_STANDARD 11)
add_executable(sdl_book main.cpp
AnimatedGraphic.cpp
AnimatedGraphicCreator.cpp
base64.cpp
Enemy.cpp
EnemyCreator.cpp
Game.cpp
GameObjectFactory.cpp
GameOverState.cpp
GameState.h
GameStateMachine.cpp
InputHandler.cpp
Level.cpp
LevelParser.cpp
MainMenuState.cpp
MenuButton.cpp
MenuButtonCreator.cpp
MenuState.cpp
PauseState.cpp
Player.cpp
PlayerCreator.cpp
PlayState.cpp
SDLGameObject.cpp
StateParser.cpp
TextureManager.cpp
TileLayer.cpp
Vector2D.cpp
)
target_link_libraries(sdl_book ${SDL2_LIBRARIES} ${SDL2_IMAGE_LIBRARIES} ${TINYXML_LIBRARIES} ${ZLIB_LIBRARIES})