diff options
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-itk')
4 files changed, 82 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-itk/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-itk/portfile.cmake new file mode 100644 index 0000000..d1ab44a --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-itk/portfile.cmake @@ -0,0 +1,6 @@ +set(VCPKG_POLICY_EMPTY_PACKAGE enabled) + +vcpkg_cmake_configure( + SOURCE_PATH "${CURRENT_PORT_DIR}/project" +) +vcpkg_cmake_build() diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-itk/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-itk/project/CMakeLists.txt new file mode 100644 index 0000000..da9a7a4 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-itk/project/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.7) +project(itk-test) + +find_package(ITK CONFIG REQUIRED) + +add_executable(main main.cpp) +target_link_libraries(main PRIVATE + $<TARGET_NAME:ITKFFT> +) diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-itk/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-itk/project/main.cpp new file mode 100644 index 0000000..ff248ec --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-itk/project/main.cpp @@ -0,0 +1,9 @@ +#include <itkImage.h> +#include <itkVnlForwardFFTImageFilter.h> + +int main() +{ + using FilterType = itk::VnlForwardFFTImageFilter<itk::Image<float, 2>>; + auto fftFilter = FilterType::New(); + return 0; +} diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-itk/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-itk/vcpkg.json new file mode 100644 index 0000000..fd84799 --- /dev/null +++ b/vcpkg/scripts/test_ports/vcpkg-ci-itk/vcpkg.json @@ -0,0 +1,58 @@ +{ + "name": "vcpkg-ci-itk", + "version-string": "ci", + "description": "Validates itk; intentional permutation of features", + "homepage": "https://github.com/microsoft/vcpkg", + "license": "MIT", + "dependencies": [ + { + "name": "itk", + "features": [ + "opencv" + ], + "platform": "arm64" + }, + { + "name": "itk", + "features": [ + "rtk", + "tools" + ], + "platform": "arm64 | x64" + }, + { + "name": "itk", + "features": [ + "fftw", + "opencl" + ], + "platform": "android | osx" + }, + { + "name": "itk", + "features": [ + "vtk" + ], + "platform": "osx | windows" + }, + { + "name": "itk", + "features": [ + "cuda" + ], + "platform": "x64 & windows & !staticcrt" + }, + { + "name": "itk", + "features": [ + "cufftw", + "opencl" + ], + "platform": "x64 & (linux | windows) & static" + }, + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |