mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:59:07 +08:00
93b38546e2
* [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>
34 lines
1.3 KiB
CMake
34 lines
1.3 KiB
CMake
|
|
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)
|