FindCon2020.cmake
539 Bytes
FIND_PATH(CON2020INCLUDE_DIR libcon2020.h
HINTS
${USERLOCAL_ROOT}/include/libcon2020
NO_DEFAULT_PATH
)
mark_as_advanced(CON2020INCLUDE_DIR)
find_library(CON2020LIBRARY
NAMES con2020
HINTS
${USERLOCAL_ROOT}/lib
NO_DEFAULT_PATH
)
mark_as_advanced(CON2020LIBRARY)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Con2020 DEFAULT_MSG CON2020LIBRARY CON2020INCLUDE_DIR)
if(CON2020_FOUND)
set(CON2020INCLUDE_DIRS ${CON2020INCLUDE_DIR})
set(CON2020LIBRARIES ${CON2020LIBRARY})
endif()