-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kinectsdk1][kinectsdk2] Add Config.cmake.in (#24877)
* [kinectsdk1, kinectsdk2] Add Config.cmake.in * change version-string to version * x-add-version * update supports * x-add-version * [kinectsdk1][kinectsdk2] Switch to lessmsi Co-authored-by: Lily Wang <v-lilywang@microsoft.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
- Loading branch information
1 parent
c40e73f
commit 93b3854
Showing
10 changed files
with
139 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
get_filename_component(_kinectsdk1_root "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
get_filename_component(_kinectsdk1_root "${_kinectsdk1_root}" PATH) | ||
get_filename_component(_kinectsdk1_root "${_kinectsdk1_root}" PATH) | ||
|
||
set(_kinectsdk1_rel_lib "${_kinectsdk1_root}/lib/Kinect10.lib") | ||
set(_kinectsdk1_dbg_lib "${_kinectsdk1_root}/debug/lib/Kinect10.lib") | ||
if (EXISTS "${_kinectsdk1_rel_lib}" OR EXISTS "${_kinectsdk1_dbg_lib}") | ||
|
||
add_library(unofficial::kinectsdk1::kinectsdk1 INTERFACE IMPORTED) | ||
set_target_properties(unofficial::kinectsdk1::kinectsdk1 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_kinectsdk1_root}/include") | ||
|
||
if (EXISTS "${_kinectsdk1_rel_lib}") | ||
set_target_properties(unofficial::kinectsdk1::kinectsdk1 | ||
PROPERTIES IMPORTED_LOCATION_RELEASE "${_kinectsdk1_rel_lib}") | ||
set_property(TARGET unofficial::kinectsdk1::kinectsdk1 APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) | ||
endif() | ||
if (EXISTS "${_kinectsdk1_dbg_lib}") | ||
set_target_properties(unofficial::kinectsdk1::kinectsdk1 | ||
PROPERTIES IMPORTED_LOCATION_DEBUG "${_kinectsdk1_dbg_lib}") | ||
set_property(TARGET unofficial::kinectsdk1::kinectsdk1 APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
endif() | ||
|
||
else() | ||
|
||
set(kinectsdk1_FOUND FALSE) | ||
|
||
endif() | ||
|
||
unset(_kinectsdk1_rel_lib) | ||
unset(_kinectsdk1_dbg_lib) | ||
|
||
unset(_kinectsdk1_root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"name": "kinectsdk1", | ||
"version": "1.8", | ||
"port-version": 4, | ||
"port-version": 5, | ||
"description": "Kinect for Windows SDK for Kinect v1 sensor.", | ||
"supports": "!arm" | ||
"license": null, | ||
"supports": "!arm & windows", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-tool-lessmsi", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
get_filename_component(_kinectsdk2_root "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
get_filename_component(_kinectsdk2_root "${_kinectsdk2_root}" PATH) | ||
get_filename_component(_kinectsdk2_root "${_kinectsdk2_root}" PATH) | ||
|
||
set(_kinectsdk2_rel_lib "${_kinectsdk2_root}/lib/Kinect20.lib") | ||
set(_kinectsdk2_dbg_lib "${_kinectsdk2_root}/debug/lib/Kinect20.lib") | ||
if (EXISTS "${_kinectsdk2_rel_lib}" OR EXISTS "${_kinectsdk2_dbg_lib}") | ||
|
||
add_library(unofficial::kinectsdk2::kinectsdk2 INTERFACE IMPORTED) | ||
set_target_properties(unofficial::kinectsdk2::kinectsdk2 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_kinectsdk2_root}/include") | ||
|
||
if (EXISTS "${_kinectsdk2_rel_lib}") | ||
set_target_properties(unofficial::kinectsdk2::kinectsdk2 | ||
PROPERTIES IMPORTED_LOCATION_RELEASE "${_kinectsdk2_rel_lib}") | ||
set_property(TARGET unofficial::kinectsdk2::kinectsdk2 APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) | ||
endif() | ||
if (EXISTS "${_kinectsdk2_dbg_lib}") | ||
set_target_properties(unofficial::kinectsdk2::kinectsdk2 | ||
PROPERTIES IMPORTED_LOCATION_DEBUG "${_kinectsdk2_dbg_lib}") | ||
set_property(TARGET unofficial::kinectsdk2::kinectsdk2 APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG) | ||
endif() | ||
|
||
else() | ||
|
||
set(kinectsdk2_FOUND FALSE) | ||
|
||
endif() | ||
|
||
unset(_kinectsdk2_rel_lib) | ||
unset(_kinectsdk2_dbg_lib) | ||
|
||
unset(_kinectsdk2_root) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"name": "kinectsdk2", | ||
"version-string": "2.0", | ||
"port-version": 3, | ||
"version": "2.0", | ||
"port-version": 4, | ||
"description": "Kinect for Windows SDK for Kinect v2 sensor.", | ||
"supports": "!arm" | ||
"license": null, | ||
"supports": "!arm & windows", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-tool-lessmsi", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters