FindDDClientCpp.cmake
666 Bytes
FIND_PATH(DDCLIENTINCLUDE_DIR DD.hh
HINTS
/opt/local/include/DDClientLibCpp
$ENV{DDCLIENT_ROOT}/include/DDClientLibCpp
${DDCLIENT_ROOT}/include/DDClientLibCpp
)
mark_as_advanced(DDCLIENTINCLUDE_DIR)
find_library(DDCLIENTLIBRARY
NAMES DDClientLibCpp
HINTS
/opt/local
$ENV{DDCLIENT_ROOT}
${DDCLIENT_ROOT}
PATH_SUFFIXES lib
)
mark_as_advanced(DDCLIENTLIBRARY)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DDClient DEFAULT_MSG DDCLIENTLIBRARY DDCLIENTINCLUDE_DIR)
if(DDCLIENT_FOUND)
set(DDCLIENTINCLUDE_DIRS ${DDCLIENTINCLUDE_DIR})
set(DDCLIENTLIBRARIES ${DDCLIENTLIBRARY})
endif()