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.
 
 
 
 
 

53 lines
1.9 KiB

  1. ############################################################################
  2. # decafConfig.cmake
  3. # Copyright (C) 2017 Belledonne Communications, Grenoble France
  4. #
  5. ############################################################################
  6. #
  7. # This program is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU General Public License
  9. # as published by the Free Software Foundation; either version 2
  10. # of the License, or (at your option) any later version.
  11. #
  12. # This program is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with this program; if not, write to the Free Software
  19. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20. #
  21. ############################################################################
  22. #
  23. # Config file for the decaf package.
  24. # It defines the following variables:
  25. #
  26. # DECAF_FOUND - system has decaf
  27. # DECAF_INCLUDE_DIRS - the decaf include directory
  28. # DECAF_LIBRARIES - The libraries needed to use decaf
  29. # DECAF_CPPFLAGS - The compilation flags needed to use decaf
  30. @PACKAGE_INIT@
  31. include("${CMAKE_CURRENT_LIST_DIR}/DecafTargets.cmake")
  32. if(@ENABLE_SHARED@)
  33. set(DECAF_TARGETNAME decaf)
  34. else()
  35. set(DECAF_TARGETNAME decaf-static)
  36. endif()
  37. get_target_property(DECAF_INCLUDE_DIRS ${DECAF_TARGETNAME} INTERFACE_INCLUDE_DIRECTORIES)
  38. if(TARGET ${DECAF_TARGETNAME})
  39. get_target_property(DECAF_LIBRARIES ${DECAF_TARGETNAME} LOCATION)
  40. get_target_property(DECAF_LINK_LIBRARIES ${DECAF_TARGETNAME} INTERFACE_LINK_LIBRARIES)
  41. if(DECAF_LINK_LIBRARIES)
  42. list(APPEND DECAF_LIBRARIES ${DECAF_LINK_LIBRARIES})
  43. endif()
  44. endif()
  45. set(DECAF_CPPFLAGS @DECAF_CPPFLAGS@)
  46. set(DECAF_FOUND 1)