MushMachine/systems/fast_sky_sun/CMakeLists.txt
Green Sky 6b06d5cb99 update all cmake files to version 3.9
other misc cmake fixes

version 3.9 allows for ipo (lto)
2022-05-03 19:33:19 +02:00

23 lines
571 B
CMake

cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
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
common_components
)
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()