diff options
| author | FireFight <[email protected]> | 2026-02-08 20:16:38 +0800 |
|---|---|---|
| committer | FireFight <[email protected]> | 2026-02-08 20:16:38 +0800 |
| commit | 0ec3e11de6b03a3ffca30da5cf0e49d5052893a4 (patch) | |
| tree | d79179de28e5728f1b04329f2d37c85e1080e55e /tests/projects/package/vcpkg_dependency/src/main.cpp | |
| parent | e80c35330d2df64d4b0e70f4181a39a06af0581b (diff) | |
fix vcpkg tests
Diffstat (limited to 'tests/projects/package/vcpkg_dependency/src/main.cpp')
| -rw-r--r-- | tests/projects/package/vcpkg_dependency/src/main.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/tests/projects/package/vcpkg_dependency/src/main.cpp b/tests/projects/package/vcpkg_dependency/src/main.cpp index e5fdd37c5..9a79c7c14 100644 --- a/tests/projects/package/vcpkg_dependency/src/main.cpp +++ b/tests/projects/package/vcpkg_dependency/src/main.cpp @@ -1,16 +1,20 @@ -#include <iostream> -#include <OpenImageIO/imageio.h> -#include <openssl/evp.h> #include <OpenColorIO/OpenColorIO.h> +#include <OpenImageIO/imageio.h> +#include <boost/system/error_code.hpp> +#include <boost/filesystem.hpp> + +int main(int argc, char **argv) { + // test for opencolorio, opencolorio is one of the dependencies of openimageio. + auto transform = OCIO_NAMESPACE::ColorSpaceTransform::Create(); + + // test for openimageio. + auto write_image = OIIO::ImageInput::open("test.png"); + + // test for boost-system, boost-system is one of the dependencies of boost-system. + boost::system::error_code ec; -using namespace std; + // test for boost-filesystem. + boost::filesystem::exists("test.png", ec); -int main(int argc, char** argv) -{ - namespace OCIO = OCIO_NAMESPACE; - EVP_MD_CTX* sha256 = EVP_MD_CTX_new(); - EVP_DigestInit_ex(sha256, EVP_sha256(), nullptr); - auto write_image = OIIO::ImageOutput::create("test.png"); - cout << "hello world!" << endl; return 0; } |
