2013-12-13 21:25:16 +08:00
# Main variables:
2013-12-17 20:13:55 +08:00
# INTELPERC_LIBRARIES and INTELPERC_INCLUDE to link Intel Perceptial Computing SDK modules
2013-12-13 21:25:16 +08:00
# HAVE_INTELPERC for conditional compilation OpenCV with/without Intel Perceptial Computing SDK
2013-12-17 20:13:55 +08:00
if ( X86_64 )
find_path ( INTELPERC_INCLUDE_DIR "pxcsession.h" PATHS "$ENV{PCSDK_DIR}include" DOC "Path to Intel Perceptual Computing SDK interface headers" )
find_file ( INTELPERC_LIBRARIES "libpxc.lib" PATHS "$ENV{PCSDK_DIR}lib/x64" DOC "Path to Intel Perceptual Computing SDK interface libraries" )
2013-12-13 21:25:16 +08:00
else ( )
2013-12-17 20:13:55 +08:00
find_path ( INTELPERC_INCLUDE_DIR "pxcsession.h" PATHS "$ENV{PCSDK_DIR}include" DOC "Path to Intel Perceptual Computing SDK interface headers" )
find_file ( INTELPERC_LIBRARIES "libpxc.lib" PATHS "$ENV{PCSDK_DIR}lib/Win32" DOC "Path to Intel Perceptual Computing SDK interface libraries" )
2013-12-13 21:25:16 +08:00
endif ( )
2013-12-17 20:13:55 +08:00
if ( INTELPERC_INCLUDE_DIR AND INTELPERC_LIBRARIES )
set ( HAVE_INTELPERC TRUE )
2013-12-13 21:25:16 +08:00
else ( )
2013-12-17 20:13:55 +08:00
set ( HAVE_INTELPERC FALSE )
message ( WARNING "Intel Perceptual Computing SDK library directory (set by INTELPERC_LIB_DIR variable) is not found or does not have Intel Perceptual Computing SDK libraries." )
endif ( ) #if(INTELPERC_INCLUDE_DIR AND INTELPERC_LIBRARIES)
2013-12-13 21:25:16 +08:00
2013-12-17 20:13:55 +08:00
mark_as_advanced ( FORCE INTELPERC_LIBRARIES INTELPERC_INCLUDE_DIR )