File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ set (VCPKG_BUILD_TYPE release) # header-only port
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO dmlc/dlpack
6
+ REF "v${VERSION} "
7
+ SHA512 bdf27bdb6d24db2da9155b9c78e62faf043e0aa4d54dba4cadac312c2b87533ae1b44ecebd462a764141297baa35884c1379902d655bab8a71fe65838c7b1e9b
8
+ HEAD_REF main
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH} "
13
+ OPTIONS
14
+ -DBUILD_MOCK=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/dlpack" )
20
+
21
+ file (REMOVE_RECURSE "${CURRENT_PACKAGES_DIR} /lib" )
22
+
23
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH} /LICENSE" )
24
+
25
+ file (COPY "${CMAKE_CURRENT_LIST_DIR} /usage" DESTINATION "${CURRENT_PACKAGES_DIR} /share/${PORT} " )
Original file line number Diff line number Diff line change
1
+ dlpack provides CMake targets:
2
+
3
+ find_package(dlpack CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE dlpack::dlpack)
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " dlpack" ,
3
+ "version" : " 1.0" ,
4
+ "description" : " DLPack is an open in-memory tensor structure for sharing tensors among frameworks" ,
5
+ "homepage" : " https://github.com/dmlc/dlpack" ,
6
+ "license" : " Apache-2.0" ,
7
+ "dependencies" : [
8
+ {
9
+ "name" : " vcpkg-cmake" ,
10
+ "host" : true
11
+ },
12
+ {
13
+ "name" : " vcpkg-cmake-config" ,
14
+ "host" : true
15
+ }
16
+ ]
17
+ }
You can’t perform that action at this time.
0 commit comments