mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
898 B
36 lines
898 B
13 years ago
|
# - Find XIMEA
|
||
|
# This module finds if XIMEA Software package is installed
|
||
|
# and determines where the binaries and header files are.
|
||
|
# This code sets the following variables:
|
||
13 years ago
|
#
|
||
13 years ago
|
# XIMEA_FOUND - True if XIMEA API found
|
||
|
# XIMEA_PATH: - Path to the XIMEA API folder
|
||
13 years ago
|
# XIMEA_LIBRARY_DIR - XIMEA libraries folder
|
||
13 years ago
|
#
|
||
|
# Created: 5 Aug 2011 by Marian Zajko (marian.zajko@ximea.com)
|
||
|
#
|
||
|
|
||
|
set(XIMEA_FOUND)
|
||
|
set(XIMEA_PATH)
|
||
|
set(XIMEA_LIBRARY_DIR)
|
||
|
|
||
13 years ago
|
if(WIN32)
|
||
|
# Try to find the XIMEA API path in registry.
|
||
|
GET_FILENAME_COMPONENT(XIMEA_PATH "[HKEY_CURRENT_USER\\Software\\XIMEA\\CamSupport\\API;Path]" ABSOLUTE)
|
||
|
|
||
|
if(XIMEA_PATH)
|
||
|
set(XIMEA_FOUND 1)
|
||
13 years ago
|
|
||
13 years ago
|
# set LIB folders
|
||
|
set(XIMEA_LIBRARY_DIR "${XIMEA_PATH}\\x86")
|
||
|
|
||
|
else()
|
||
|
set(XIMEA_FOUND 0)
|
||
|
endif()
|
||
|
endif()
|
||
13 years ago
|
|
||
|
mark_as_advanced(FORCE XIMEA_FOUND)
|
||
|
mark_as_advanced(FORCE XIMEA_PATH)
|
||
|
mark_as_advanced(FORCE XIMEA_LIBRARY_DIR)
|
||
13 years ago
|
|