-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
23 lines (17 loc) · 2.53 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
cmake_minimum_required(VERSION 3.9)
project(ShockEngine)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -lz -lGL")
set(SOURCE_FILES main.cpp src/Core/Application.cpp include/Core/Application.hpp src/Input/InputManager.cpp include/Input/InputManager.hpp include/Input/KeyActionIds.hpp include/Core/Manager.hpp src/Core/State.cpp include/Core/State.hpp src/Core/StateStack.cpp include/Core/StateStack.hpp include/Core/StateIds.hpp src/States/GameState.cpp include/States/GameState.hpp src/States/PauseState.cpp include/States/PauseState.hpp src/Core/ContextBuffer.cpp include/Core/ContextBuffer.hpp src/Render/Diagnostics.cpp include/Render/Diagnostics.hpp src/Render/RenderedObject.cpp include/Render/RenderedObject.hpp include/Resource/ResourceHolder.hpp include/Resource/ResourceIdentifiers.hpp src/Render/RenderedObjectManager.cpp include/Render/RenderedObjectManager.hpp src/Render/TileMap.cpp include/Render/TileMap.hpp include/Utilities/String/StringUtils.hpp include/Utilities/Math/Matrix.hpp src/Game/World.cpp include/Game/World.hpp src/Game/Instance.cpp include/Game/Instance.hpp src/Game/Entity.cpp include/Game/Entity.hpp src/Game/Player.cpp include/Game/Player.hpp include/Game/Components/Component.hpp src/Game/Components/MovementComponent.cpp include/Game/Components/MovementComponent.hpp src/Game/Components/CollisionComponent.cpp include/Game/Components/CollisionComponent.hpp src/Render/Map.cpp include/Render/Map.hpp src/Game/Camera.cpp include/Game/Camera.hpp src/Render/ImGui/imgui.cpp src/Render/ImGui/imgui-SFML.cpp src/Render/ImGui/imgui_draw.cpp include/Render/ImGui/imconfig.h include/Render/ImGui/imgui.h include/Render/ImGui/imgui-SFML.h include/Render/ImGui/imgui_internal.h include/Render/ImGui/imstb_rectpack.h include/Render/ImGui/imstb_textedit.h include/Render/ImGui/imstb_truetype.h src/Render/ImGui/imgui_widgets.cpp src/Render/ImGui/imgui_demo.cpp src/Render/ProceduralTileMap.cpp include/Render/ProceduralTileMap.hpp include/Render/Tile.hpp)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_modules")
find_package(SFML REQUIRED system window graphics network audio)
find_package(THOR 2 REQUIRED)
find_package(SFGUI REQUIRED)
include_directories(${SFML_INCLUDE_DIR})
include_directories(${THOR_INCLUDE_DIR})
include_directories(${SFGUI_INCLUDE_DIR})
add_executable(ShockEngine ${SOURCE_FILES})
target_link_libraries(ShockEngine ${SFML_LIBRARIES})
target_link_libraries(ShockEngine ${THOR_LIBRARY})
target_link_libraries(ShockEngine ${SFGUI_LIBRARY})