2014-03-13 23:05:09 +08:00
|
|
|
cmake_minimum_required (VERSION 2.8.11)
|
2010-05-14 00:01:50 +08:00
|
|
|
PROJECT (HDF5_TOOLS)
|
|
|
|
|
2012-09-19 06:08:07 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Apply Definitions to compiler in this directory and below
|
|
|
|
#-----------------------------------------------------------------------------
|
2014-05-15 03:50:28 +08:00
|
|
|
add_definitions (${HDF_EXTRA_C_FLAGS})
|
2012-09-19 06:08:07 +08:00
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Setup include Directories
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
INCLUDE_DIRECTORIES (${HDF5_TOOLS_SOURCE_DIR}/lib)
|
|
|
|
|
|
|
|
# --------------------------------------------------------------------
|
|
|
|
# If testing was NOT enabled, then we need to build the tools library
|
|
|
|
# --------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT BUILD_TESTING)
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/lib)
|
2014-03-12 05:14:57 +08:00
|
|
|
endif (NOT BUILD_TESTING)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5diff and test executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5diff)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5ls executable
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5ls)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Misc Executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/misc)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5import and test executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5import)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- h5Repack executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5repack)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5dump and test executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5jam)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5copy and test executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5copy)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5stat and test executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5stat)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add the h5dump and test executables
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/h5dump)
|
2014-12-18 07:07:24 +08:00
|
|
|
|
|
|
|
#-- Add the perform and test executables
|
2015-01-06 05:52:26 +08:00
|
|
|
add_subdirectory (${HDF5_TOOLS_SOURCE_DIR}/perform)
|