[openimageio] Fix exported cmake config (#39612)

This commit is contained in:
Kai Pastor 2024-07-01 22:05:26 +02:00 committed by GitHub
parent 485225516a
commit dec6c5bf42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 61 additions and 19 deletions

View File

@ -1,10 +1,11 @@
diff -u -r a/src/cmake/Config.cmake.in b/src/cmake/Config.cmake.in
--- a/src/cmake/Config.cmake.in
+++ b/src/cmake/Config.cmake.in
@@ -6,6 +6,26 @@
@@ -6,6 +6,27 @@
include(CMakeFindDependencyMacro)
+find_dependency(Boost COMPONENTS @Boost_COMPONENTS@)
+if(@USE_GIF@)
+ find_dependency(GIF)
+endif()

View File

@ -1,7 +1,7 @@
{
"name": "openimageio",
"version": "2.5.12.0",
"port-version": 1,
"port-version": 2,
"description": "A library for reading and writing images, and a bunch of related classes, utilities, and application.",
"homepage": "https://github.com/OpenImageIO/oiio",
"license": "BSD-3-Clause",

View File

@ -1 +1,4 @@
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project")
vcpkg_cmake_build()

View File

@ -0,0 +1,7 @@
cmake_minimum_required(VERSION 3.7)
project(vcpkg-ci-openimageio CXX)
add_executable(main main.cpp)
find_package(OpenImageIO CONFIG REQUIRED)
target_link_libraries(main PRIVATE OpenImageIO::OpenImageIO)

View File

@ -0,0 +1,7 @@
#include <OpenImageIO/imageio.h>
int main(int, char**)
{
auto inp = OIIO::ImageInput::open("none");
return inp ? 0 : 1;
}

View File

@ -1,25 +1,44 @@
{
"name": "vcpkg-ci-openimageio",
"version": "2",
"description": "OpenImageIO features testing within CI.",
"version-string": "ci",
"description": "OpenImageIO testing within CI.",
"license": "MIT",
"dependencies": [
{
"name": "openimageio",
"features": [
"ffmpeg",
"freetype",
"gif",
"libraw",
"opencv",
"openjpeg",
"default-features": false
},
{
"name": "vcpkg-cmake",
"host": true
}
],
"default-features": [
"openimageio-features"
],
"features": {
"openimageio-features": {
"description": "Enable OpenImageIO features",
"dependencies": [
{
"name": "pybind11",
"platform": "!(windows & static)"
},
"tools",
"webp"
"name": "openimageio",
"default-features": false,
"features": [
"ffmpeg",
"freetype",
"gif",
"libraw",
"opencv",
"openjpeg",
{
"name": "pybind11",
"platform": "!(windows & static)"
},
"tools",
"webp"
]
}
]
}
]
}
}

View File

@ -6526,7 +6526,7 @@
},
"openimageio": {
"baseline": "2.5.12.0",
"port-version": 1
"port-version": 2
},
"openjpeg": {
"baseline": "2.5.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e0caa7c7cee2cc24b441cc7dba90b8b183a757b0",
"version": "2.5.12.0",
"port-version": 2
},
{
"git-tree": "ce78ee5a41eda148167cad88a553e111b40d4840",
"version": "2.5.12.0",