mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-03 10:26:29 +00:00
42 lines
1.1 KiB
CMake
42 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.19)
|
|
project(wal)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
add_library(wal
|
|
sources/Entity/Entity.hpp
|
|
sources/Component/Component.hpp
|
|
sources/System/System.hpp
|
|
sources/Wal.cpp
|
|
sources/Wal.hpp
|
|
sources/Scene/SceneManager.cpp
|
|
sources/Scene/SceneManager.hpp
|
|
sources/Scene/Scene.cpp
|
|
sources/Scene/Scene.hpp
|
|
sources/Events/EventManager.cpp
|
|
sources/Events/EventManager.hpp
|
|
sources/Exception/WalError.cpp
|
|
sources/Exception/WalError.hpp
|
|
sources/Entity/Entity.cpp
|
|
sources/Component/Component.cpp
|
|
sources/Component/Position/PositionComponent.cpp
|
|
sources/Component/Position/PositionComponent.hpp
|
|
sources/Models/Vector3.hpp
|
|
sources/Component/Movable/MovableComponent.cpp
|
|
sources/Component/Movable/MovableComponent.hpp
|
|
sources/System/Movable/MovableSystem.cpp
|
|
sources/System/Movable/MovableSystem.hpp
|
|
sources/System/System.cpp
|
|
)
|
|
|
|
target_include_directories(wal PUBLIC sources)
|
|
|
|
add_executable(wal_tests EXCLUDE_FROM_ALL
|
|
tests/EntityTests.cpp
|
|
tests/MainTest.cpp
|
|
tests/EngineTests.cpp
|
|
)
|
|
|
|
target_link_libraries(wal_tests PRIVATE wal)
|
|
find_package(Catch2 REQUIRED)
|
|
target_link_libraries(wal_tests PRIVATE Catch2::Catch2) |