diff options
author | Tony Theodore <tonyt@logyst.com> | 2015-11-28 09:07:29 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2015-11-28 09:07:29 (GMT) |
commit | 46baacbd2116380e67bb072730886140caf9d8d8 (patch) | |
tree | c86176e02443fc8a9f85bc0c703e676e77b44d73 /src/hdf5.mk | |
parent | b5546cf2f5baa109ed4aae99884fff616c07c485 (diff) | |
download | mxe-46baacbd2116380e67bb072730886140caf9d8d8.zip mxe-46baacbd2116380e67bb072730886140caf9d8d8.tar.gz mxe-46baacbd2116380e67bb072730886140caf9d8d8.tar.bz2 |
hdf5: add cmake test
Diffstat (limited to 'src/hdf5.mk')
-rw-r--r-- | src/hdf5.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hdf5.mk b/src/hdf5.mk index de5d160..56cd437 100644 --- a/src/hdf5.mk +++ b/src/hdf5.mk @@ -69,4 +69,12 @@ define $(PKG)_BUILD -W -Wall -Werror -ansi -pedantic \ '$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-hdf5.exe' \ -lhdf5_hl -lhdf5 -lz + + # test cmake can find hdf5 + mkdir '$(1).test-cmake' + cd '$(1).test-cmake' && '$(TARGET)-cmake' \ + -DPKG=$(PKG) \ + -DPKG_VERSION=$($(PKG)_VERSION) \ + '$(PWD)/src/cmake/test' + $(MAKE) -C '$(1).test-cmake' -j 1 install VERBOSE=ON endef |