mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 21:18:10 +00:00
d15dc9f40f
Emscripten compiles to WASM, which can be loaded via HTML / JavaScript. This allows you to play OpenTTD inside a browser. Co-authored-by: milek7 <me@milek7.pl>
8 lines
205 B
CMake
8 lines
205 B
CMake
add_library(PNG::PNG INTERFACE IMPORTED)
|
|
set_target_properties(PNG::PNG PROPERTIES
|
|
INTERFACE_COMPILE_OPTIONS "-sUSE_LIBPNG=1"
|
|
INTERFACE_LINK_LIBRARIES "-sUSE_LIBPNG=1"
|
|
)
|
|
|
|
set(PNG_FOUND on)
|