summaryrefslogtreecommitdiffstats
path: root/kamera/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-01-29 20:50:07 +0100
committerSlávek Banko <slavek.banko@axis.cz>2013-01-29 20:50:38 +0100
commitd4d1a5808bad1023c8291a52c2143b36f6b41d85 (patch)
treecea31c25494e01818dde626f2bc83553de50ab16 /kamera/ConfigureChecks.cmake
parent0fed03e23520820e85c5a8c0ef1b4e69668274b6 (diff)
downloadtdegraphics-d4d1a5808bad1023c8291a52c2143b36f6b41d85.tar.gz
tdegraphics-d4d1a5808bad1023c8291a52c2143b36f6b41d85.zip
Add support for gphoto 2.5
Based on KDE GIT commit cdcf4205
Diffstat (limited to 'kamera/ConfigureChecks.cmake')
-rw-r--r--kamera/ConfigureChecks.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/kamera/ConfigureChecks.cmake b/kamera/ConfigureChecks.cmake
index 359f9a00..b9f8f8d6 100644
--- a/kamera/ConfigureChecks.cmake
+++ b/kamera/ConfigureChecks.cmake
@@ -13,3 +13,11 @@ 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 "")