#----------------------------------------------------------------------------- # # ISMRMRDConfig.cmake - ISMRMRD CMake configuration file for external projects. # # This file is configured by ISMRMRD and used by the UseISMRMRD.cmake module # to load ISMRMRD's settings for an external project. @PACKAGE_INIT@ get_filename_component(ISMRMRD_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) include(${ISMRMRD_CMAKE_DIR}/ISMRMRDConfigVersion.cmake) # ISMRMRD_SCHEMA_DIR - where to find ismrmrd.xsd set(ISMRMRD_SCHEMA_DIR "@CONFIG_ISMRMRD_SCHEMA_DIR@") # ISMRMRD_INCLUDE_DIR - where to find ismrmrd.h, etc. set(ISMRMRD_INCLUDE_DIRS "@CONFIG_ISMRMRD_TARGET_INCLUDE_DIRS@") # ISMRMRD_LIBRARY_DIRS - where to search for libraries set(ISMRMRD_LIBRARY_DIRS "@CONFIG_ISMRMRD_LIBRARY_DIRS@") # ISMRMRD_LIBRARIES - i.e. ismrmrd set(ISMRMRD_LIBRARIES ISMRMRD::ISMRMRD) set(USE_SYSTEM_PUGIXML @USE_SYSTEM_PUGIXML@) ## For backwards compatibility use existing variable name ## Include directories can be lists, and should be plural ## to conform with naming schemes in many other cmake packages set(ISMRMRD_INCLUDE_DIR "@CONFIG_ISMRMRD_TARGET_INCLUDE_DIRS@") set(ISMRMRD_LIB_DIR "@CONFIG_ISMRMRD_LIBRARY_DIRS@") # ------------------------------------------------------------------------------ include(CMakeFindDependencyMacro) list(INSERT CMAKE_MODULE_PATH 0 ${ISMRMRD_CMAKE_DIR}) if (@BUILD_STATIC@) set(HDF5_USE_STATIC_LIBRARIES TRUE) endif() find_package(pugixml CONFIG) if (NOT pugixml_FOUND) find_dependency(pugixml) endif() if (@USE_HDF5_DATASET_SUPPORT@) if(CMAKE_VERSION VERSION_LESS 3.9) # CMake <= 3.8 find_dependency does not support COMPONENTS find_package(HDF5 REQUIRED COMPONENTS C) else() find_dependency(HDF5 COMPONENTS C) endif() endif() list(REMOVE_AT CMAKE_MODULE_PATH 0) # ============================================================================== set_and_check(ISMRMRDTargets "${ISMRMRD_CMAKE_DIR}/ISMRMRDTargets.cmake") include(${ISMRMRDTargets}) # ==============================================================================