-
Notifications
You must be signed in to change notification settings - Fork 2
/
CMakeLists.txt
19 lines (17 loc) · 3.76 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.10)
project(cpp_indie_studio)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR})
find_package (Threads)
include_directories(include)
include_directories(lib/irrlicht-1.8.4/include)
include_directories(lib/irrKlang/include)
link_directories(${CMAKE_SOURCE_DIR}/lib/irrKlang/lib)
link_directories(${CMAKE_SOURCE_DIR}/lib/irrlicht-1.8.4/lib/Linux)
add_executable(bomberman main.cpp sources/BomberWave.cpp include/BomberWave.hpp sources/MainMenu.cpp include/MainMenu.hpp sources/GameObjects/GameObject.cpp include/GameObject.hpp sources/GameManager.cpp include/GameManager.hpp sources/GameInputManager.cpp include/GameInputManager.hpp sources/GameRenderer.cpp include/GameRenderer.hpp sources/Exceptions.cpp include/Exceptions.hpp sources/GameMap.cpp include/GameMap.hpp sources/GameObjects/Player.cpp include/Player.hpp sources/GameTime.cpp include/GameTime.hpp sources/GameObjects/Bomb.cpp include/Bomb.hpp sources/GameObjects/Monster.cpp include/Monster.hpp sources/shared/ANetworkAsyncListener.cpp include/shared/ANetworkAsyncListener.h sources/shared/NetworkSocket.cpp include/shared/NetworkSocket.h include/shared/Network.h sources/shared/ANetworkAsyncServer.cpp include/shared/ANetworkAsyncServer.h include/shared/INetworkClientHandler.h sources/shared/NetworkClient.cpp include/shared/NetworkClient.h include/shared/ANetworkClientAdapter.h sources/shared/ANetworkBuffer.cpp include/shared/ANetworkBuffer.h sources/shared/impl/BasicNetworkBuffer.cpp include/shared/BasicNetworkBuffer.h sources/network/NetworkClientAdapter.cpp include/NetworkClientAdapter.h sources/serializable/BinaryDataWriter.cpp include/BinaryDataWriter.h sources/shared/ANetworkClientAdapter.cpp sources/serializable/BinaryDataReader.cpp include/BinaryDataReader.h include/NetworkMessage.h sources/network/NetworkProtocol.cpp include/NetworkProtocol.h sources/gameserver/GameClientHandler.cpp include/GameClientHandler.h sources/gameserver/GameClient.cpp include/GameClient.h sources/network/ANetworkController.cpp include/ANetworkController.h sources/gameserver/GameServerController.cpp include/GameServerController.h sources/network/ANetworkClient.cpp include/ANetworkClient.h sources/protocol/HelloConnectMessage.cpp include/HelloConnectMessage.h sources/protocol/GameDataMessage.cpp include/GameDataMessage.h sources/gameclient/GameSession.cpp include/GameSession.h sources/gameclient/GameSessionHandler.cpp include/GameSessionHandler.h sources/gameclient/GameSessionController.cpp include/GameSessionController.h sources/gameserver/GameServer.cpp include/GameServer.h sources/gameclient/GameSessionConnector.cpp include/GameSessionConnector.h include/Serializable.h include/GameDataSerializer.h sources/GameObjects/Test.cpp sources/GameObjects/Test.h sources/serializable/GameDataSerializer.cpp sources/GameMapFactory.cpp include/GameMapFactory.h sources/GameObjects/Walls.cpp include/Walls.hpp sources/GameObjects/Explosion.cpp include/Explosion.hpp sources/GameUtils.cpp include/GameUtils.hpp sources/BackgroundLoader.cpp include/BackgroundLoader.hpp sources/GameUIManager.cpp include/GameUIManager.hpp sources/PlayerBuff.cpp include/PlayerBuff.hpp sources/GameObjects/PowerUps.cpp include/PowerUps.hpp sources/GameLobby.cpp include/GameLobby.hpp sources/protocol/LobbyUpdateMessage.cpp include/LobbyUpdateMessage.h sources/protocol/RequestLobbyMessage.cpp include/RequestLobbyMessage.h sources/protocol/RequestStartGameMessage.cpp include/RequestStartGameMessage.h sources/protocol/InputMessage.cpp include/InputMessage.h)
target_link_libraries(bomberman Irrlicht)
target_link_libraries(bomberman IrrKlang)
target_link_libraries(bomberman IkpFlac)
target_link_libraries(bomberman IkpMP3)
target_link_libraries (bomberman ${CMAKE_THREAD_LIBS_INIT})