mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 15:09:01 +08:00
472b159dab
* [lodepng] Add cmake import configs * [lodepng] Update to commit e34ac0@2020-03-15 * [lodepng] Modernize port - Remove calls to deprecated vcpkg functions. - Remove commented out pngdetail tool project definitions. * [lodepng] Remove osx failure from ci.baseline
23 lines
723 B
CMake
23 lines
723 B
CMake
cmake_minimum_required(VERSION 3.8.0)
|
|
project(lodepng)
|
|
|
|
add_library(lodepng lodepng.cpp lodepng_util.cpp)
|
|
target_include_directories(lodepng PUBLIC
|
|
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
)
|
|
|
|
file(WRITE "${CMAKE_BINARY_DIR}/lodepng-config.cmake" "include(\"\${CMAKE_CURRENT_LIST_DIR}/lodepng-targets.cmake\")")
|
|
install(FILES "${CMAKE_BINARY_DIR}/lodepng-config.cmake" DESTINATION "share/lodepng/")
|
|
|
|
install(TARGETS lodepng EXPORT lodepng-targets)
|
|
|
|
install(EXPORT lodepng-targets DESTINATION share/lodepng/)
|
|
|
|
if(NOT DDISABLE_INSTALL_EXAMPLES)
|
|
install(DIRECTORY examples DESTINATION share/lodepng/)
|
|
endif()
|
|
|
|
if(NOT DISABLE_INSTALL_HEADERS)
|
|
install(FILES lodepng.h lodepng_util.h DESTINATION include)
|
|
endif()
|