mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[openimageio] Fix exported cmake config (#39612)
This commit is contained in:
parent
485225516a
commit
dec6c5bf42
@ -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()
|
||||
|
@ -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",
|
||||
|
@ -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()
|
||||
|
@ -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)
|
7
scripts/test_ports/vcpkg-ci-openimageio/project/main.cpp
Normal file
7
scripts/test_ports/vcpkg-ci-openimageio/project/main.cpp
Normal file
@ -0,0 +1,7 @@
|
||||
#include <OpenImageIO/imageio.h>
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
auto inp = OIIO::ImageInput::open("none");
|
||||
return inp ? 0 : 1;
|
||||
}
|
@ -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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -6526,7 +6526,7 @@
|
||||
},
|
||||
"openimageio": {
|
||||
"baseline": "2.5.12.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"openjpeg": {
|
||||
"baseline": "2.5.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e0caa7c7cee2cc24b441cc7dba90b8b183a757b0",
|
||||
"version": "2.5.12.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "ce78ee5a41eda148167cad88a553e111b40d4840",
|
||||
"version": "2.5.12.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user