Blame view

cmake/modules/FindInternalField.cmake 612 Bytes
09b5a8e4   Erdogan Furkan   10038
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FIND_PATH(INTERNALFIELDINCLUDE_DIR libinternalfield.h
  HINTS
    ${USERLOCAL_ROOT}/include
  NO_DEFAULT_PATH
)
mark_as_advanced(INTERNALFIELDINCLUDE_DIR)

find_library(INTERNALFIELDLIBRARY 
    NAMES internalfield
    HINTS
      ${USERLOCAL_ROOT}/lib
    NO_DEFAULT_PATH
)
mark_as_advanced(INTERNALFIELDLIBRARY)

include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(InternalField DEFAULT_MSG INTERNALFIELDLIBRARY INTERNALFIELDINCLUDE_DIR)

if(INTERNALFIELD_FOUND)
   set(INTERNALFIELDINCLUDE_DIRS ${INTERNALFIELDINCLUDE_DIR})
   set(INTERNALFIELDLIBRARIES ${INTERNALFIELDLIBRARY})
endif()