mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2024-11-14 11:03:02 +01:00
21 lines
539 B
CMake
21 lines
539 B
CMake
|
cmake_minimum_required(VERSION 3.2)
|
||
|
project(fast_sky_sun_system CXX)
|
||
|
|
||
|
add_library(fast_sky_sun_system
|
||
|
src/mm/systems/fast_sky_sun_system.hpp
|
||
|
src/mm/systems/fast_sky_sun_system.cpp
|
||
|
)
|
||
|
|
||
|
target_include_directories(fast_sky_sun_system PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
||
|
|
||
|
target_link_libraries(fast_sky_sun_system
|
||
|
engine
|
||
|
fast_sky_render_task
|
||
|
)
|
||
|
|
||
|
if(EMSCRIPTEN)
|
||
|
set_target_properties(fast_sky_sun_system PROPERTIES COMPILE_FLAGS "-s USE_SDL=2")
|
||
|
set_target_properties(fast_sky_sun_system PROPERTIES LINK_FLAGS "-s USE_SDL=2")
|
||
|
endif()
|
||
|
|