From d4d1a5808bad1023c8291a52c2143b36f6b41d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 29 Jan 2013 20:50:07 +0100 Subject: Add support for gphoto 2.5 Based on KDE GIT commit cdcf4205 --- kamera/ConfigureChecks.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'kamera/ConfigureChecks.cmake') 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 "") -- cgit v1.2.1