Advertisement
Patrickquinn1212

FindGMODULE2.cmake

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