Blame view

cmake/modules/FindCainlib.cmake 528 Bytes
6ba9e9fd   Hacene SI HADJ MOHAND   connection ok
1
FIND_PATH(CAINLIBINCLUDE_DIR cainlib.hh
a1ab0552   Hacene SI HADJ MOHAND   plugin added
2
3
4
5
  HINTS
    ${USERLOCAL_ROOT}/include
  NO_DEFAULT_PATH
)
6ba9e9fd   Hacene SI HADJ MOHAND   connection ok
6
mark_as_advanced(CAINLIBINCLUDE_DIR)
a1ab0552   Hacene SI HADJ MOHAND   plugin added
7

6ba9e9fd   Hacene SI HADJ MOHAND   connection ok
8
9
find_library(CAINLIBLIBRARY 
    NAMES cainlib
a1ab0552   Hacene SI HADJ MOHAND   plugin added
10
11
12
13
    HINTS
      ${USERLOCAL_ROOT}/lib
    NO_DEFAULT_PATH
)
6ba9e9fd   Hacene SI HADJ MOHAND   connection ok
14
mark_as_advanced(CAINLIBLIBRARY)
a1ab0552   Hacene SI HADJ MOHAND   plugin added
15
16

include(FindPackageHandleStandardArgs)
6ba9e9fd   Hacene SI HADJ MOHAND   connection ok
17
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Cainlib DEFAULT_MSG CAINLIBLIBRARY CAINLIBINCLUDE_DIR)
a1ab0552   Hacene SI HADJ MOHAND   plugin added
18

6ba9e9fd   Hacene SI HADJ MOHAND   connection ok
19
20
21
if(CAINLIB_FOUND)
    set(CAINLIBINCLUDE_DIRS ${CAINLIBINCLUDE_DIR})
    set(CAINLIBLIBRARIES ${CAINLIBLIBRARY})
a1ab0552   Hacene SI HADJ MOHAND   plugin added
22
endif()