Files @ r25528:52b815c03f32
Branch filter:

Location: cpp/openttd-patchpack/source/os/emscripten/cmake/FindPNG.cmake

rubidium42
Codechange: use initializer_lists for the settings tables

Not using vectors as those require copying from the initializer list and that
makes unique_ptrs to the actual SettingDesc objects later impossible.
1
2
3
4
5
6
7
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)