1# 2# Try to find the Endace DAG library. 3# 4 5# Try to find the header 6find_path(DAG_INCLUDE_DIR dagapi.h) 7 8# 9# Try to find the libraries 10# 11# We assume that if we have libdag we have libdagconf, as they're 12# installed at the same time from the same package. 13# 14find_library(DAG_LIBRARY dag) 15find_library(DAGCONF_LIBRARY dagconf) 16 17# 18# Get link information from the _LIBRARY paths. 19# 20get_link_info_from_library_path(DAG dag) 21get_link_info_from_library_path(DAGCONF dagconf) 22 23include(FindPackageHandleStandardArgs) 24find_package_handle_standard_args(DAG 25 DEFAULT_MSG 26 DAG_INCLUDE_DIR 27 DAG_LIBRARY 28 DAGCONF_LIBRARY 29) 30 31mark_as_advanced( 32 DAG_INCLUDE_DIR 33 DAG_LIBRARY 34 DAGCONF_LIBRARY 35) 36 37set(DAG_INCLUDE_DIRS ${DAG_INCLUDE_DIR}) 38set(DAG_LIBRARIES ${DAG_LIBRARY} ${DAGCONF_LIBRARY}) 39set(DAG_STATIC_LIBRARIES ${DAG_LIBRARY} ${DAGCONF_LIBRARY}) 40