1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
#-----------------------------------------------------------------------------
# h5blosc Config file for compiling against h5blosc build directory
#-----------------------------------------------------------------------------
@PACKAGE_INIT@
string(TOUPPER @H5BLOSC_PACKAGE@ H5BLOSC_PACKAGE_NAME)
set (${H5BLOSC_PACKAGE_NAME}_VALID_COMPONENTS static shared)
#-----------------------------------------------------------------------------
# User Options
#-----------------------------------------------------------------------------
set (${H5BLOSC_PACKAGE_NAME}_BUILD_SHARED_LIBS @BUILD_SHARED_LIBS@)
set (${H5BLOSC_PACKAGE_NAME}_EXPORT_LIBRARIES @HH5BLOSC_LIBRARIES_TO_EXPORT@)
#-----------------------------------------------------------------------------
# Directories
#-----------------------------------------------------------------------------
set (${H5BLOSC_PACKAGE_NAME}_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set (${H5BLOSC_PACKAGE_NAME}_SHARE_DIR "@PACKAGE_SHARE_INSTALL_DIR@")
set_and_check (${H5BLOSC_PACKAGE_NAME}_BUILD_DIR "@PACKAGE_CURRENT_BUILD_DIR@")
#-----------------------------------------------------------------------------
# Version Strings
#-----------------------------------------------------------------------------
set (${H5BLOSC_PACKAGE_NAME}_VERSION_STRING @H5BLOSC_VERSION_STRING@)
set (${H5BLOSC_PACKAGE_NAME}_VERSION_MAJOR @H5BLOSC_VERSION_MAJOR@)
set (${H5BLOSC_PACKAGE_NAME}_VERSION_MINOR @H5BLOSC_VERSION_MINOR@)
#-----------------------------------------------------------------------------
# Don't include targets if this file is being picked up by another
# project which has already built h5blosc as a subproject
#-----------------------------------------------------------------------------
if (NOT TARGET "@H5BLOSC_PACKAGE@")
include (@PACKAGE_SHARE_INSTALL_DIR@/@H5BLOSC_PACKAGE@@H5BLOSC_PACKAGE_EXT@-targets.cmake)
set (H5BLOSC_LIBRARIES "@H5BLOSC_LIBRARIES_TO_EXPORT@")
endif ()
# Handle default component(static) :
if (NOT ${H5BLOSC_PACKAGE_NAME}_FIND_COMPONENTS)
set (${H5BLOSC_PACKAGE_NAME}_FIND_COMPONENTS static)
set (${H5BLOSC_PACKAGE_NAME}_FIND_REQUIRED_static true)
endif ()
# Handle requested components:
list (REMOVE_DUPLICATES ${H5BLOSC_PACKAGE_NAME}_FIND_COMPONENTS)
foreach (comp IN LISTS ${H5BLOSC_PACKAGE_NAME}_FIND_COMPONENTS)
list (FIND ${H5BLOSC_PACKAGE_NAME}_EXPORT_LIBRARIES "@H5BLOSC_LIB_CORENAME@-${comp}" HAVE_COMP)
if (${HAVE_COMP} LESS 0)
set (${H5BLOSC_PACKAGE_NAME}_${comp}_FOUND 0)
else ()
set (${H5BLOSC_PACKAGE_NAME}_${comp}_FOUND 1)
string(TOUPPER ${H5LZ4_PACKAGE_NAME}_${comp}_LIBRARY COMP_LIBRARY)
set (${COMP_LIBRARY} ${${COMP_LIBRARY}} @H5BLOSC_LIB_CORENAME@-${comp})
endif ()
endforeach ()
check_required_components (${H5BLOSC_PACKAGE_NAME})
|