FindDAG.cmake 635 B

1234567891011121314151617181920212223242526272829303132
  1. #
  2. # Try to find the Endace DAG library.
  3. #
  4. # Try to find the header
  5. find_path(DAG_INCLUDE_DIR dagapi.h)
  6. #
  7. # Try to find the libraries
  8. #
  9. # We assume that if we have libdag we have libdagconf, as they're
  10. # installed at the same time from the same package.
  11. #
  12. find_library(DAG_LIBRARY dag)
  13. find_library(DAGCONF_LIBRARY dagconf)
  14. include(FindPackageHandleStandardArgs)
  15. find_package_handle_standard_args(DAG
  16. DEFAULT_MSG
  17. DAG_INCLUDE_DIR
  18. DAG_LIBRARY
  19. DAGCONF_LIBRARY
  20. )
  21. mark_as_advanced(
  22. DAG_INCLUDE_DIR
  23. DAG_LIBRARY
  24. DAGCONF_LIBRARY
  25. )
  26. set(DAG_INCLUDE_DIRS ${DAG_INCLUDE_DIR})
  27. set(DAG_LIBRARIES ${DAG_LIBRARY} ${DAGCONF_LIBRARY})