@PACKAGE_INIT@

message(STATUS "Found @PROJECT_NAME@: @PACKAGE_CMAKE_INSTALL_PREFIX@ (found version @PROJECT_VERSION@@EXTVERS@)")

set_and_check(@PROJECT_NAME_UC@_DIR "@PACKAGE_CMAKE_INSTALL_PREFIX@")
set_and_check(@PROJECT_NAME_UC@_INCLUDE_DIR "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")

if(IS_DIRECTORY "@PACKAGE_INSTALL_CONFIGDIR@/Modules")
  list(APPEND CMAKE_MODULE_PATH "@PACKAGE_INSTALL_CONFIGDIR@/Modules")
endif()

include("@PACKAGE_TARGETS_FILE@")

@FIND_DEPENDENCY_COMMANDS@

check_required_components(@PROJECT_NAME_UC@)

## Extra rpath stuff for MacOS
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
  set(CMAKE_INSTALL_RPATH 
    ${CMAKE_INSTALL_RPATH} 
    "@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@")
  message("hcana: set rpath to ${CMAKE_INSTALL_RPATH}")
endif()
