Advertisement
Patrickquinn1212

FindGLib.cmake

Sep 30th, 2019
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.22 KB | None | 0 0
  1. # - Find the native Glib includes and library
  2. #
  3. # This module defines
  4. #  GMODULE_INCLUDE_DIR, where to find sqlite3.h, etc.
  5. #  GMODULE_LIBRARIES, the libraries to link against to use sqlite3.
  6. #  GMODULE_FOUND, If false, do not try to use sqlite3.
  7. #  also defined, but not for general use are
  8. #  GMODULE_LIBRARY, where to find the sqlite3 library.
  9.  
  10.  
  11. #=============================================================================
  12. # Copyright 2010 henrik andersson
  13. #=============================================================================
  14.  
  15. SET(GMODULE_FIND_REQUIRED ${GModule_FIND_REQUIRED})
  16.  
  17. find_path(GMODULE_INCLUDE_DIR glib-2.0/gmodule.h)
  18. mark_as_advanced(GMODULE_INCLUDE_DIR)
  19.  
  20. set(GMODULE_NAMES ${GMODULE_NAMES} gmodule-2.0 libgmodule-2.0)
  21. find_library(GMODULE_LIBRARY NAMES ${GMODULE_NAMES} )
  22. mark_as_advanced(GMODULE_LIBRARY)
  23.  
  24. # handle the QUIETLY and REQUIRED arguments and set GMODULE_FOUND to TRUE if
  25. # all listed variables are TRUE
  26. include(FindPackageHandleStandardArgs)
  27. find_package_handle_standard_args(GModule DEFAULT_MSG GMODULE_LIBRARY GMODULE_INCLUDE_DIR)
  28.  
  29. IF(GMODULE_FOUND)
  30.     SET(GModule_LIBRARIES ${GMODULE_LIBRARY})
  31.     SET(GModule_INCLUDE_DIRS ${GMODULE_INCLUDE_DIR})
  32. ENDIF(GMODULE_FOUND)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement