FindInternalField.cmake
612 Bytes
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()