Debian Codegraph @

BLOSC/config/cmake/h5blosc-config.cmake.in

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