mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-10-30 06:45:36 +01:00
25 lines
570 B
CMake
25 lines
570 B
CMake
cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
|
|
|
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()
|
|
|