Blame view

cmake/modules/FindDDClient.cmake 536 Bytes
bab9407b   Benjamin Renard   DDClient is now a...
1
2
FIND_PATH(DDCLIENTINCLUDE_DIR DD.h
  HINTS
4cedf03b   Benjamin Renard   Update script use...
3
    ${USERLOCAL_ROOT}/include/DDClientLibC
bab9407b   Benjamin Renard   DDClient is now a...
4
5
6
7
8
9
)
mark_as_advanced(DDCLIENTINCLUDE_DIR)

find_library(DDCLIENTLIBRARY 
    NAMES DDClientLibC
    HINTS
4cedf03b   Benjamin Renard   Update script use...
10
11
        ${USERLOCAL_ROOT}/lib
    NO_DEFAULT_PATH
bab9407b   Benjamin Renard   DDClient is now a...
12
13
14
15
16
17
18
19
20
21
)
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()