more cmake cleaning

This commit is contained in:
Erik Frojdh
2020-11-18 09:43:07 +01:00
parent b96b1849cd
commit 56be47669f
3 changed files with 6 additions and 25 deletions

View File

@ -15,16 +15,15 @@ set(PUBLICHEADERS
include/sls/Receiver.h
)
# HDF5
# HDF5 file writing
if (SLS_USE_HDF5)
if (HDF5_FOUND)
find_package(HDF5 1.10 COMPONENTS CXX REQUIRED)
add_definitions(
-DHDF5C ${HDF5_DEFINITIONS}
)
list (APPEND SOURCES
src/HDF5File.cpp
)
endif ()
endif (SLS_USE_HDF5)
# Create an object library to avoid building the library twice