2017-06-25 03:07:09 +08:00
include ( vcpkg_common_functions )
get_filename_component ( KINECTSDK10_DIR "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Kinect;SDKInstallPath]" ABSOLUTE CACHE )
if ( NOT EXISTS "${KINECTSDK10_DIR}" )
2017-06-29 05:19:40 +08:00
message ( FATAL_ERROR "Error: Could not find Kinect for Windows SDK v1.x. It can be downloaded from https://www.microsoft.com/en-us/download/details.aspx?id=40278." )
2017-06-25 03:07:09 +08:00
endif ( )
file (
I N S T A L L
" $ { K I N E C T S D K 1 0 _ D I R } / i n c / N u i A p i . h "
" $ { K I N E C T S D K 1 0 _ D I R } / i n c / N u i I m a g e C a m e r a . h "
" $ { K I N E C T S D K 1 0 _ D I R } / i n c / N u i S e n s o r . h "
" $ { K I N E C T S D K 1 0 _ D I R } / i n c / N u i S k e l e t o n . h "
D E S T I N A T I O N
2017-06-29 05:16:48 +08:00
$ { C U R R E N T _ P A C K A G E S _ D I R } / i n c l u d e
2017-06-25 03:07:09 +08:00
)
if ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" )
set ( ARCHITECTURE x86 )
elseif ( VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" )
set ( ARCHITECTURE amd64 )
2017-06-29 05:16:48 +08:00
else ( )
message ( FATAL_ERROR "This port does not currently support architecture: ${VCPKG_TARGET_ARCHITECTURE}" )
2017-06-25 03:07:09 +08:00
endif ( )
file (
I N S T A L L
" $ { K I N E C T S D K 1 0 _ D I R } / l i b / $ { A R C H I T E C T U R E } / K i n e c t 1 0 . l i b "
D E S T I N A T I O N
$ { C U R R E N T _ P A C K A G E S _ D I R } / l i b
)
file (
I N S T A L L
" $ { K I N E C T S D K 1 0 _ D I R } / l i b / $ { A R C H I T E C T U R E } / K i n e c t 1 0 . l i b "
D E S T I N A T I O N
$ { C U R R E N T _ P A C K A G E S _ D I R } / d e b u g / l i b
)
# Handle copyright
file ( COPY "${KINECTSDK10_DIR}/SDKEula.rtf" DESTINATION ${ CURRENT_PACKAGES_DIR } /share/kinectsdk1 )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /share/kinectsdk1/SDKEula.rtf ${ CURRENT_PACKAGES_DIR } /share/kinectsdk1/copyright )