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(simple_sdl_renderer_service CXX)
|
|
|
|
|
|
|
|
add_library(simple_sdl_renderer_service
|
|
|
|
src/mm/simple_sdl_renderer/target.hpp
|
|
|
|
|
|
|
|
src/mm/services/simple_sdl_renderer.hpp
|
|
|
|
src/mm/services/simple_sdl_renderer.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(simple_sdl_renderer_service PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
|
|
|
target_include_directories(simple_sdl_renderer_service PUBLIC "${SDL2_INCLUDE_DIR}")
|
|
|
|
|
|
|
|
target_link_libraries(simple_sdl_renderer_service
|
|
|
|
engine
|
|
|
|
glm
|
|
|
|
sdl_service
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_TESTING)
|
|
|
|
add_subdirectory(test)
|
|
|
|
endif()
|
|
|
|
|