Changed one CLI message in stitching_detailed.
[profile/ivi/opencv.git] / OpenCVFindXimea.cmake
1 # - Find XIMEA
2 # This module finds if XIMEA Software package is installed
3 # and determines where the binaries and header files are.
4 # This code sets the following variables:
5 #  
6 #  XIMEA_FOUND          - True if XIMEA API found
7 #  XIMEA_PATH:          - Path to the XIMEA API folder
8 #  XIMEA_LIBRARY_DIRS   - XIMEA libraries folder
9 #
10 # Created: 5 Aug 2011 by Marian Zajko (marian.zajko@ximea.com)
11 #
12
13 set(XIMEA_FOUND)
14 set(XIMEA_PATH)
15 set(XIMEA_LIBRARY_DIR)
16
17 # Try to find the XIMEA API path in registry.
18 GET_FILENAME_COMPONENT(XIMEA_PATH "[HKEY_CURRENT_USER\\Software\\XIMEA\\CamSupport\\API;Path]" ABSOLUTE)                                                
19
20 if(XIMEA_PATH)
21   set(XIMEA_FOUND 1)
22   
23   # set LIB folders
24   set(XIMEA_LIBRARY_DIR "${XIMEA_PATH}\\x86")
25   
26 else()
27   set(XIMEA_FOUND 0)
28 endif()                                            
29
30 mark_as_advanced(FORCE XIMEA_FOUND)
31 mark_as_advanced(FORCE XIMEA_PATH)
32 mark_as_advanced(FORCE XIMEA_LIBRARY_DIR)
33   
34    
35