FindDDClient.cmake
536 Bytes
FIND_PATH(DDCLIENTINCLUDE_DIR DD.h
HINTS
${USERLOCAL_ROOT}/include/DDClientLibC
)
mark_as_advanced(DDCLIENTINCLUDE_DIR)
find_library(DDCLIENTLIBRARY
NAMES DDClientLibC
HINTS
${USERLOCAL_ROOT}/lib
NO_DEFAULT_PATH
)
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()