@@ -42,7 +42,7 @@ message(STATUS "Building xtensor-io v${${PROJECT_NAME}_VERSION}")
4242# Dependencies
4343# ============
4444
45- set (xtensor_REQUIRED_VERSION 0.21.9 )
45+ set (xtensor_REQUIRED_VERSION 0.21.10 )
4646find_package (xtensor ${xtensor_REQUIRED_VERSION} REQUIRED)
4747
4848message (STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS} /xtensor" )
@@ -51,20 +51,20 @@ message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
5151# =====
5252
5353set (XTENSOR_IO_HEADERS
54- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xaudio.hpp
55- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xchunk_store_manager.hpp
56- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xfile_array.hpp
57- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xgdal.hpp
58- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xhighfive.hpp
59- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/ximage.hpp
60- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_binary.hpp
61- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_blosc.hpp
62- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_disk_handler.hpp
63- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_gcs_handler.hpp
64- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_gzip.hpp
65- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xnpz.hpp
66- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xtensor-io.hpp
67- ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xtensor_io_config.hpp
54+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xaudio.hpp
55+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xchunk_store_manager.hpp
56+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xfile_array.hpp
57+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xgdal.hpp
58+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xhighfive.hpp
59+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/ximage.hpp
60+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_binary.hpp
61+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_blosc.hpp
62+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_disk_handler.hpp
63+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_gcs_handler.hpp
64+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xio_gzip.hpp
65+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xnpz.hpp
66+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xtensor-io.hpp
67+ ${XTENSOR_IO_INCLUDE_DIR} /xtensor-io/xtensor_io_config.hpp
6868)
6969
7070OPTION (BUILD_TESTS "xtensor-io test suite" OFF )
@@ -79,14 +79,13 @@ add_library(xtensor-io INTERFACE)
7979include_directories (${GTEST_INCLUDE_DIRS} )
8080
8181target_include_directories (xtensor-io
82- INTERFACE
82+ INTERFACE
8383 $<BUILD_INTERFACE:${XTENSOR_IO_INCLUDE_DIR} >
8484 $<INSTALL_INTERFACE:include >
8585)
8686
8787target_link_libraries (xtensor-io
88- INTERFACE
89- xtl
88+ INTERFACE
9089 xtensor
9190)
9291
@@ -99,15 +98,15 @@ if (${OIIO_FOUND})
9998 message (STATUS "OpenImageIO found, image file support enabled" )
10099 include_directories (${OIIO_INCLUDE_DIRS} )
101100 target_include_directories (xtensor-io
102- INTERFACE
101+ INTERFACE
103102 $<BUILD_INTERFACE:${OIIO_INCLUDE_DIRS} >
104103 )
105104 target_link_libraries (xtensor-io
106- INTERFACE
105+ INTERFACE
107106 ${OIIO_LIBRARIES}
108107 )
109108else ()
110- message (WARNING "OpenImageIO not found - install OpenImageIO for image support" )
109+ message (WARNING "OpenImageIO not found - install OpenImageIO for image support" )
111110endif ()
112111
113112message (STATUS "Trying to find SndFile for xaudio support" )
@@ -116,15 +115,15 @@ if (${LIBSNDFILE_FOUND})
116115 message (STATUS "SndFile found, audio file support enabled" )
117116 include_directories (${LIBSNDFILE_INCLUDE_DIRS} )
118117 target_include_directories (xtensor-io
119- INTERFACE
118+ INTERFACE
120119 $<BUILD_INTERFACE:${LIBSNDFILE_INCLUDE_DIRS} >
121120 )
122121 target_link_libraries (xtensor-io
123- INTERFACE
122+ INTERFACE
124123 ${LIBSNDFILE_LIBRARIES}
125124 )
126125else ()
127- message (WARNING "SndFile (libsndfile) not found - install libsndfile for audio support" )
126+ message (WARNING "SndFile (libsndfile) not found - install libsndfile for audio support" )
128127endif ()
129128
130129message (STATUS "Trying to find ZLIB for npz file support" )
@@ -133,15 +132,15 @@ if (${ZLIB_FOUND})
133132 message (STATUS "ZLIB found, npz file support enabled" )
134133 include_directories (${ZLIB_INCLUDE_DIRS} )
135134 target_include_directories (xtensor-io
136- INTERFACE
137- $<BUILD_INTERFACE:${ZLIB_INCLUDE_DIRS} >
135+ INTERFACE
136+ $<BUILD_INTERFACE:${ZLIB_INCLUDE_DIRS} >
138137 )
139138 target_link_libraries (xtensor-io
140- INTERFACE
139+ INTERFACE
141140 ${ZLIB_LIBRARIES}
142141 )
143142else ()
144- message (WARNING "ZLIB not found - install zlib for xnpz file support" )
143+ message (WARNING "ZLIB not found - install zlib for xnpz file support" )
145144endif ()
146145
147146message (STATUS "Trying to find HighFive for npz file support" )
@@ -152,11 +151,11 @@ if (${HighFive_FOUND} AND ${HDF5_FOUND})
152151 find_package (HDF5 REQUIRED)
153152 get_target_property (HighFive_INCLUDE_DIRECTORIES_EXTRACTED HighFive INTERFACE_INCLUDE_DIRECTORIES )
154153 target_include_directories (xtensor-io
155- INTERFACE
154+ INTERFACE
156155 ${HighFive_INCLUDE_DIRECTORIES_EXTRACTED}
157156 )
158157 target_link_libraries (xtensor-io
159- INTERFACE
158+ INTERFACE
160159 ${HDF5_LIBRARIES}
161160 )
162161else ()
@@ -169,27 +168,27 @@ if (${Blosc_FOUND})
169168 message (STATUS "Blosc found, Blosc file support enabled" )
170169 include_directories (${Blosc_INCLUDE_DIRS} )
171170 target_include_directories (xtensor-io
172- INTERFACE
173- $<BUILD_INTERFACE:${Blosc_INCLUDE_DIRS} >
171+ INTERFACE
172+ $<BUILD_INTERFACE:${Blosc_INCLUDE_DIRS} >
174173 )
175174 target_link_libraries (xtensor-io
176- INTERFACE
175+ INTERFACE
177176 ${Blosc_LIBRARIES}
178177 )
179178else ()
180- message (WARNING "Blosc not found - install blosc for Blosc file support" )
179+ message (WARNING "Blosc not found - install blosc for Blosc file support" )
181180endif ()
182181
183182message (STATUS "Trying to find GDAL for geospatial raster file support" )
184183find_package (GDAL)
185184if (${GDAL_FOUND} )
186185 message (STATUS "GDAL ${GDAL_VERSION} found, geospatial raster file support enabled" )
187186 target_include_directories (xtensor-io
188- INTERFACE
187+ INTERFACE
189188 ${GDAL_INCLUDE_DIRS}
190189 )
191190 target_link_libraries (xtensor-io
192- INTERFACE
191+ INTERFACE
193192 ${GDAL_LIBRARIES}
194193 )
195194else ()
0 commit comments