diff options
Diffstat (limited to 'vcpkg/ports/xsimd')
| -rw-r--r-- | vcpkg/ports/xsimd/portfile.cmake | 31 | ||||
| -rw-r--r-- | vcpkg/ports/xsimd/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/xsimd/vcpkg.json | 25 |
3 files changed, 60 insertions, 0 deletions
diff --git a/vcpkg/ports/xsimd/portfile.cmake b/vcpkg/ports/xsimd/portfile.cmake new file mode 100644 index 0000000..7084088 --- /dev/null +++ b/vcpkg/ports/xsimd/portfile.cmake @@ -0,0 +1,31 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xtensor-stack/xsimd
+ REF "${VERSION}"
+ SHA512 3825626547b0dd9b58f306bc89e9b3bc6dd778ad3811b7828e50fc16ae102574255b53f2b0714995de2bd6f9eb7b2c5d266a1a24fbfdf5420dc5e94d7dcbb522
+ HEAD_REF master
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ xcomplex ENABLE_XTL_COMPLEX
+)
+
+set(VCPKG_BUILD_TYPE release) # header-only port
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTS=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/xsimd/usage b/vcpkg/ports/xsimd/usage new file mode 100644 index 0000000..af6f651 --- /dev/null +++ b/vcpkg/ports/xsimd/usage @@ -0,0 +1,4 @@ +xsimd provides CMake targets: + + find_package(xsimd CONFIG REQUIRED) + target_link_libraries(main PRIVATE xsimd) diff --git a/vcpkg/ports/xsimd/vcpkg.json b/vcpkg/ports/xsimd/vcpkg.json new file mode 100644 index 0000000..c4396f5 --- /dev/null +++ b/vcpkg/ports/xsimd/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "xsimd", + "version": "13.2.0", + "description": "Modern, portable C++ wrappers for SIMD intrinsics", + "homepage": "https://github.com/xtensor-stack/xsimd", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "xcomplex": { + "description": "xtl complex support", + "dependencies": [ + "xtl" + ] + } + } +} |