Created
September 5, 2016 02:16
-
-
Save meresmclr/f34295feda469281a54368087fb432e0 to your computer and use it in GitHub Desktop.
basic HDF5 Cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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