# Generate HDF5 sources from repository root: 
# phoenix_hdf5 --template -i src/swat_event_reference.ph5 -o src

file(GLOB all_SRC "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp")
phoenix_add_library(phoenix_protobuff_stream_to_hdf5 ${all_SRC})
target_link_libraries(phoenix_protobuff_stream_to_hdf5 ${PROTOBUFF_DUMPER_LIBRARIES} ${HDF5_CXX_LIBRARIES})

install(TARGETS phoenix_protobuff_stream_to_hdf5 LIBRARY DESTINATION ${LIBRARY_DIRECTORY} ARCHIVE DESTINATION ${LIBRARY_DIRECTORY})

file(GLOB headersFunction "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
install(FILES ${headersFunction} DESTINATION include/PhoenixProtoBuffStreamToHdf5)