Epoxy.cmake 446 B

1234567891011121314151617181920
  1. # -*- cmake -*-
  2. if (EPOXY_CMAKE_INCLUDED)
  3. return()
  4. endif (EPOXY_CMAKE_INCLUDED)
  5. set (EPOXY_CMAKE_INCLUDED TRUE)
  6. include(Prebuilt)
  7. if (USESYSTEMLIBS)
  8. include(FindPkgConfig)
  9. pkg_check_modules(EPOXY epoxy)
  10. endif (USESYSTEMLIBS)
  11. if (NOT EPOXY_FOUND)
  12. use_prebuilt_binary(libepoxy)
  13. set(EPOXY_INCLUDE_DIRS ${LIBS_PREBUILT_DIR}/include)
  14. set(EPOXY_LIBRARIES libepoxy.a)
  15. endif (NOT EPOXY_FOUND)
  16. include_directories(SYSTEM ${EPOXY_INCLUDE_DIRS})