Blame view

cmake/modules/FindDDClient.cmake 605 Bytes
bab9407b   Benjamin Renard   DDClient is now a...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FIND_PATH(DDCLIENTINCLUDE_DIR DD.h
  HINTS
    $ENV{DDCLIENT_ROOT}/include/DDClientLibC
    ${DDCLIENT_ROOT}/include/DDClientLibC
)
mark_as_advanced(DDCLIENTINCLUDE_DIR)

find_library(DDCLIENTLIBRARY 
    NAMES DDClientLibC
    HINTS
        $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()