diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lodepng/CMakeLists.txt | |
Diffstat (limited to 'vcpkg/ports/lodepng/CMakeLists.txt')
| -rw-r--r-- | vcpkg/ports/lodepng/CMakeLists.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/lodepng/CMakeLists.txt b/vcpkg/ports/lodepng/CMakeLists.txt new file mode 100644 index 0000000..6c80b12 --- /dev/null +++ b/vcpkg/ports/lodepng/CMakeLists.txt @@ -0,0 +1,30 @@ +cmake_minimum_required(VERSION 3.8.0) +project(lodepng) + +add_library(lodepng lodepng.cpp) +target_include_directories(lodepng PUBLIC + $<INSTALL_INTERFACE:include> +) + +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/) + +add_library(lodepng-c lodepng.c) +target_include_directories(lodepng-c PUBLIC + $<INSTALL_INTERFACE:include> +) + +file(WRITE "${CMAKE_BINARY_DIR}/lodepng-c-config.cmake" "include(\"\${CMAKE_CURRENT_LIST_DIR}/lodepng-c-targets.cmake\")") +install(FILES "${CMAKE_BINARY_DIR}/lodepng-c-config.cmake" DESTINATION "share/lodepng-c/") + +install(TARGETS lodepng-c EXPORT lodepng-c-targets) + +install(EXPORT lodepng-c-targets DESTINATION share/lodepng-c/) + +if(NOT DISABLE_INSTALL_HEADERS) + install(FILES lodepng.h DESTINATION include) +endif() |