summaryrefslogtreecommitdiffstats
path: root/src/hdf5-test.cmake
blob: dc9c6912476e49205490421fdea396a8b88f8584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This file is part of MXE.
# See index.html for further information.

# partial module - included by src/cmake/CMakeLists.txt

set(TGT test-${PKG}-cmake)

enable_language(CXX)
add_executable(${TGT} ${CMAKE_CURRENT_LIST_DIR}/${PKG}-test.cpp)

find_package(HDF5 ${PKG_VERSION} EXACT REQUIRED COMPONENTS C HL)
target_link_libraries(${TGT} ${HDF5_LIBRARIES})

install(TARGETS ${TGT} DESTINATION bin)