mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
9449cfa361
bring r19906 from 1.8 branch
35 lines
1.2 KiB
CMake
35 lines
1.2 KiB
CMake
cmake_minimum_required (VERSION 2.8)
|
|
PROJECT (HDF5_HL_CPP_EXAMPLES)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Setup include Directories
|
|
#-----------------------------------------------------------------------------
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_SRC_DIR}/src)
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_CPP_SRC_DIR}/src)
|
|
|
|
# --------------------------------------------------------------------
|
|
# Add in the examples for the Packet Table codes
|
|
# --------------------------------------------------------------------
|
|
ADD_EXECUTABLE (ptExampleFL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleFL.cpp)
|
|
H5_NAMING (ptExampleFL ${LIB_TYPE})
|
|
TARGET_LINK_LIBRARIES (
|
|
ptExampleFL
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
${HDF5_HL_LIB_TARGET}
|
|
${HDF5_LIB_TARGET}
|
|
)
|
|
|
|
ADD_EXECUTABLE (ptExampleVL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleVL.cpp)
|
|
H5_NAMING (ptExampleVL ${LIB_TYPE})
|
|
TARGET_LINK_LIBRARIES (
|
|
ptExampleVL
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
${HDF5_HL_LIB_TARGET}
|
|
${HDF5_LIB_TARGET}
|
|
)
|
|
|
|
IF (BUILD_TESTING)
|
|
ADD_TEST (NAME cpp_hl_ex_ptExampleFL COMMAND $<TARGET_FILE:ptExampleFL>)
|
|
ADD_TEST (NAME cpp_hl_ex_ptExampleVL COMMAND $<TARGET_FILE:ptExampleVL>)
|
|
ENDIF (BUILD_TESTING)
|