2022-05-03 18:53:24 +02:00
|
|
|
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
project(engine CXX)
|
|
|
|
|
|
|
|
add_library(engine
|
|
|
|
src/mm/engine_fwd.hpp
|
|
|
|
src/mm/engine.hpp
|
|
|
|
src/mm/engine.cpp
|
|
|
|
|
2020-12-12 16:55:27 +01:00
|
|
|
src/mm/update_strategies/update_strategy.hpp
|
2021-04-28 19:38:25 +02:00
|
|
|
src/mm/update_strategies/dummy.hpp
|
2020-12-12 16:55:27 +01:00
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
src/mm/services/service.hpp
|
|
|
|
|
2021-04-28 19:38:25 +02:00
|
|
|
src/mm/update_strategies/sequential_strategy.hpp
|
|
|
|
src/mm/update_strategies/sequential_strategy.cpp
|
2020-09-29 13:47:50 +02:00
|
|
|
|
|
|
|
src/mm/services/scene_service_interface.hpp
|
|
|
|
|
|
|
|
src/mm/services/net_channeled_interface.hpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# find . -type f -exec sed -i 's/simple_scene\/services\/simple_scene_ss.hpp/services\/scene_service_interface.hpp/g' {} \;
|
|
|
|
|
|
|
|
target_include_directories(engine PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|
|
|
2022-10-30 16:17:48 +01:00
|
|
|
target_compile_features(engine PUBLIC cxx_std_17)
|
|
|
|
|
2020-09-29 13:47:50 +02:00
|
|
|
target_link_libraries(engine
|
|
|
|
tracy_client
|
|
|
|
logger
|
|
|
|
entt
|
|
|
|
glm
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_TESTING)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
|
|
|
|