summaryrefslogtreecommitdiffstats
path: root/kamera/ConfigureChecks.cmake
blob: b9f8f8d68fcefe9f983ca01219bfbe18ecff0348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#################################################
#
#  (C) 2010-2011 Serghei Amelian
#  serghei (DOT) amelian (AT) gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

pkg_search_module( GPHOTO2 libgphoto2 )
if( NOT GPHOTO2_FOUND )
  tde_message_fatal( "libgphoto2 is required, but was not found on your system" )
endif( )

check_library_exists(gphoto2_port gp_port_info_get_name "" GPHOTO2_5)
if(GPHOTO2_5)
  message(STATUS "  found libgphoto2 2.5")
else(GPHOTO2_5)
  message(STATUS "  assuming libgphoto2 2.4")
endif(GPHOTO2_5)
set(HAVE_GPHOTO2_5 ${GPHOTO2_5} CACHE FILEPATH "")