TDE graphics utilities
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.

ConfigureChecks.cmake 676B

1234567891011121314151617181920212223
  1. #################################################
  2. #
  3. # (C) 2010-2011 Serghei Amelian
  4. # serghei (DOT) amelian (AT) gmail.com
  5. #
  6. # Improvements and feedback are welcome
  7. #
  8. # This file is released under GPL >= 2
  9. #
  10. #################################################
  11. pkg_search_module( GPHOTO2 libgphoto2 )
  12. if( NOT GPHOTO2_FOUND )
  13. tde_message_fatal( "libgphoto2 is required, but was not found on your system" )
  14. endif( )
  15. check_library_exists(gphoto2_port gp_port_info_get_name "" GPHOTO2_5)
  16. if(GPHOTO2_5)
  17. message(STATUS " found libgphoto2 2.5")
  18. else(GPHOTO2_5)
  19. message(STATUS " assuming libgphoto2 2.4")
  20. endif(GPHOTO2_5)
  21. set(HAVE_GPHOTO2_5 ${GPHOTO2_5} CACHE FILEPATH "")