FIND_PATH(KT17INCLUDE_DIR libkt.h HINTS ${USERLOCAL_ROOT}/include NO_DEFAULT_PATH ) mark_as_advanced(KT17INCLUDE_DIR) find_library(KT17LIBRARY NAMES kt HINTS ${USERLOCAL_ROOT}/lib NO_DEFAULT_PATH ) mark_as_advanced(KT17LIBRARY) include(FindPackageHandleStandardArgs) FIND_PACKAGE_HANDLE_STANDARD_ARGS(KT17 DEFAULT_MSG KT17LIBRARY KT17INCLUDE_DIR) if(KT17_FOUND) set(KT17INCLUDE_DIRS ${KT17INCLUDE_DIR}) set(KT17LIBRARIES ${KT17LIBRARY}) endif()