Skip to content

Instantly share code, notes, and snippets.

@meresmclr
Created September 5, 2016 02:16
Show Gist options
  • Save meresmclr/f34295feda469281a54368087fb432e0 to your computer and use it in GitHub Desktop.
Save meresmclr/f34295feda469281a54368087fb432e0 to your computer and use it in GitHub Desktop.
basic HDF5 Cmake
cmake_minimum_required (VERSION 3.1) #yes, CMake 3.1 is required
project(myproj C)
# https://gist.github.com/scienceopen/9f88bbe4841ea67aa692f7395bb38bfe
add_executable(myprog ../myprog.c)
find_package(HDF5 REQUIRED)
include_directories(${HDF5_INCLUDE_DIR})
target_link_libraries(myprog ${HDF5_C_LIBRARIES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment