find_package(OpenCASCADE CONFIG) 

if(OpenCASCADE_DIR)
MESSAGE("found config file in: ${OpenCASCADE_CONFIG}")
MESSAGE("opencascade root defined via env var CASROOT: $ENV{CASROOT}")
MESSAGE("opencascade vars defined in cmake config:")
MESSAGE("- root: ${OpenCASCADE_INSTALL_PREFIX}")
MESSAGE("- binary in ${OpenCASCADE_BINARY_DIR}")
MESSAGE("- includes in ${OpenCASCADE_INCLUDE_DIR}")
MESSAGE("- libs in ${OpenCASCADE_LIBRARY_DIR}")
MESSAGE("- resources in ${OpenCASCADE_RESOURCE_DIR}")
MESSAGE("- scripts in ${OpenCASCADE_SCRIPT_DIR}")
endif()