mxe/src/hdf5-test.cmake

14 lines
418 B
CMake
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2015-11-28 09:07:29 +00:00
# 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)
2015-11-28 14:56:57 +00:00
find_package(HDF5 ${PKG_VERSION} EXACT REQUIRED COMPONENTS C HL)
target_link_libraries(${TGT} ${HDF5_HL_LIBRARIES} ${HDF5_LIBRARIES})
2015-11-28 09:07:29 +00:00
install(TARGETS ${TGT} DESTINATION bin)