2017-01-11 07:09:53 +08:00
|
|
|
cmake_minimum_required (VERSION 3.2.2)
|
2011-02-22 22:55:04 +08:00
|
|
|
PROJECT (HDF5_HL C CXX)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
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
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# List Source files
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_SOURCE_DIR}/src )
|
|
|
|
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_HL_SOURCE_DIR}/src ${HDF5_HL_BINARY_DIR}/src)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Build the High level Tools
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_TOOLS)
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_HL_SOURCE_DIR}/tools ${HDF5_HL_BINARY_DIR}/tools)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Add High Level Examples
|
2014-03-12 05:14:57 +08:00
|
|
|
if (HDF5_BUILD_EXAMPLES)
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_HL_SOURCE_DIR}/examples ${HDF5_HL_BINARY_DIR}/examples)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
#-- Build the Unit testing if requested
|
2014-03-12 05:14:57 +08:00
|
|
|
if (NOT HDF5_EXTERNALLY_CONFIGURED)
|
|
|
|
if (BUILD_TESTING)
|
2014-03-19 00:21:46 +08:00
|
|
|
add_subdirectory (${HDF5_HL_SOURCE_DIR}/test ${HDF5_HL_BINARY_DIR}/test)
|
2017-01-11 07:09:53 +08:00
|
|
|
endif ()
|
|
|
|
endif ()
|