Skip to content

Commit

Permalink
removed ebool code from the mainline
Browse files Browse the repository at this point in the history
Update #548
  • Loading branch information
eugenwintersberger committed Dec 27, 2021
1 parent 8d6e961 commit 7e40f27
Show file tree
Hide file tree
Showing 18 changed files with 519 additions and 175 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ elseif(NOT ${CONAN} MATCHES "DISABLE")
message(FATAL_ERROR "Unrecognised option for CONAN (${CONAN}), use AUTO, MANUAL or DISABLE")
endif()

#=============================================================================
# contrib extensions
#=============================================================================
set(H5CPP_ENABLE_NEXUS "false" CACHE BOOL "enable support or Nexus types")
set(H5CPP_ENABLE_STL "true" CACHE BOOL "enable STL support for H5CPP")

#=============================================================================
# General configuration
#=============================================================================
Expand Down
8 changes: 7 additions & 1 deletion src/h5cpp/contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
add_subdirectory(stl)
if(H5CPP_ENABLE_STL)
add_subdirectory(stl)
endif()

if(H5CPP_ENABLE_NEXUS)
add_subdirectory(nexus)
endif()
8 changes: 8 additions & 0 deletions src/h5cpp/contrib/nexus/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
set(SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/ebool.cpp)
set(HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/ebool.hpp)

install(FILES ${HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/h5cpp/contrib/nexus)

set(h5cpp_sources ${h5cpp_sources} ${SOURCES} PARENT_SCOPE)
set(h5cpp_headers ${h5cpp_headers} ${HEADERS} PARENT_SCOPE)
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions src/h5cpp/contrib/stl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
set(HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/array.hpp
${CMAKE_CURRENT_SOURCE_DIR}/complex.hpp
${CMAKE_CURRENT_SOURCE_DIR}/stl.hpp
${CMAKE_CURRENT_SOURCE_DIR}/string.hpp
${CMAKE_CURRENT_SOURCE_DIR}/vector.hpp)

install(FILES ${HEADERS}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/h5cpp/contrib/stl)

set(h5cpp_headers ${h5cpp_headers} ${HEADERS} PARENT_SCOPE)
2 changes: 0 additions & 2 deletions src/h5cpp/datatype/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ set(SOURCES
${dir}/string.cpp
${dir}/types.cpp
${dir}/enum.cpp
${dir}/ebool.cpp
)

set(HEADERS
Expand All @@ -23,7 +22,6 @@ set(HEADERS
${dir}/string.hpp
${dir}/array.hpp
${dir}/enum.hpp
${dir}/ebool.hpp
)

install(FILES ${HEADERS}
Expand Down
1 change: 0 additions & 1 deletion src/h5cpp/hdf5.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@

#include <h5cpp/datatype/compound.hpp>
#include <h5cpp/datatype/datatype.hpp>
#include <h5cpp/datatype/ebool.hpp>
#include <h5cpp/datatype/factory.hpp>
#include <h5cpp/datatype/float.hpp>
#include <h5cpp/datatype/integer.hpp>
Expand Down
3 changes: 1 addition & 2 deletions test/attribute/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ set(test_sources
attribute_multidim_io_test.cpp
attribute_fixed_string_io.cpp
attribute_variable_string_io.cpp
attribute_h5py_bool_test.cpp
attribute_pniio_bool_test.cpp)
)

add_executable(attribute_test ${test_sources})
target_link_libraries(attribute_test h5cpp)
Expand Down
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7e40f27

Please sign in to comment.