minecraft-pi-reborn/dependencies/stb_image/CMakeLists.txt

19 lines
436 B
CMake
Raw Normal View History

2023-11-11 05:44:26 +00:00
project(stb_image)
# Silence Warnings
add_compile_options(-w)
## stb_image
# Build
add_library(stb_image SHARED src/stb_image_impl.c)
target_link_libraries(stb_image PRIVATE m)
target_compile_definitions(stb_image PUBLIC STBI_ONLY_PNG)
2024-11-20 00:57:43 +00:00
setup_header_dirs(stb_image "${CMAKE_CURRENT_SOURCE_DIR}/include")
2023-11-11 05:44:26 +00:00
# Install
2024-11-20 00:57:43 +00:00
setup_library(stb_image TRUE TRUE)
2023-11-11 05:44:26 +00:00
# License
install(FILES include/LICENSE DESTINATION "${MCPI_LEGAL_DIR}/stb_image")