File tree 6 files changed +56
-0
lines changed
6 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ add_library (unofficial::hlslpp::hlslpp INTERACE IMPORTED )
2
+ target_include_directories (unofficial::hlslpp::hlslpp INTERFACE "${CMAKE_CURRENT_LIST_DIR} /../../include/hlslpp" )
Original file line number Diff line number Diff line change
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO redorav/hlslpp
4
+ REF "${VERSION} "
5
+ SHA512 79b1464eb6441ec720b9952e80d7fbdb67852f7770fbe6ec2c67736627e62292f9d23dfcc9b1d548b6c33b75a7b2e911fa757fe087d7360bc7e72867d7f2c7a8
6
+ HEAD_REF master
7
+ )
8
+
9
+ file (INSTALL "${SOURCE_PATH} /include" DESTINATION "${CURRENT_PACKAGES_DIR} /include/" )
10
+ file (RENAME "${CURRENT_PACKAGES_DIR} /include/include" "${CURRENT_PACKAGES_DIR} /include/hlslpp" )
11
+
12
+ # Copy and rename License -> copyright.
13
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH} /LICENSE" )
14
+
15
+ # Copy the cmake config file, which is used to setup the imported target.
16
+ file (INSTALL "${CMAKE_CURRENT_LIST_DIR} /${PORT} -config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR} /share/${PORT} " )
17
+
18
+ # Copy and show the usage.
19
+ configure_file ("${CMAKE_CURRENT_LIST_DIR} /usage" "${CURRENT_PACKAGES_DIR} /share/${PORT} /usage" COPYONLY )
Original file line number Diff line number Diff line change
1
+ hlslpp provides a CMake package:
2
+
3
+ find_package(unofficial-hlslpp CONFIG REQUIRED)
4
+ target_link_libraries(main PUBLIC unofficial::hlslpp::hlslpp)
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " hlslpp" ,
3
+ "version" : " 3.5" ,
4
+ "description" : " Math library using HLSL syntax with multiplatform SIMD support." ,
5
+ "homepage" : " https://github.com/redorav/hlslpp" ,
6
+ "license" : " MIT" ,
7
+ "supports" : " !x86" ,
8
+ "dependencies" : [
9
+ {
10
+ "name" : " vcpkg-cmake" ,
11
+ "host" : true
12
+ },
13
+ {
14
+ "name" : " vcpkg-cmake-config" ,
15
+ "host" : true
16
+ }
17
+ ]
18
+ }
Original file line number Diff line number Diff line change 3464
3464
"baseline" : " 2.4.1" ,
3465
3465
"port-version" : 0
3466
3466
},
3467
+ "hlslpp" : {
3468
+ "baseline" : " 3.5" ,
3469
+ "port-version" : 0
3470
+ },
3467
3471
"hnswlib" : {
3468
3472
"baseline" : " 0.8.0" ,
3469
3473
"port-version" : 0
Original file line number Diff line number Diff line change
1
+ {
2
+ "versions" : [
3
+ {
4
+ "git-tree" : " 441df83e907bfc42eedda5b2e502e627519b3a8a" ,
5
+ "version" : " 3.5" ,
6
+ "port-version" : 0
7
+ }
8
+ ]
9
+ }
You can’t perform that action at this time.
0 commit comments