2010-05-14 00:01:50 +08:00
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
PROJECT (HDF5_HL_CPP_EXAMPLES)
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Setup include Directories
|
|
|
|
#-----------------------------------------------------------------------------
|
2010-09-01 04:15:13 +08:00
|
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_SRC_DIR}/src)
|
|
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_CPP_SRC_DIR}/src)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
|
|
|
# --------------------------------------------------------------------
|
|
|
|
# Add in the examples for the Packet Table codes
|
|
|
|
# --------------------------------------------------------------------
|
|
|
|
IF (HDF5_BUILD_EXAMPLES)
|
|
|
|
ADD_EXECUTABLE (ptExampleFL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleFL.cpp)
|
|
|
|
H5_NAMING (ptExampleFL)
|
2010-09-10 00:30:23 +08:00
|
|
|
TARGET_WIN_PROPERTIES (ptExampleFL)
|
2010-05-14 00:01:50 +08:00
|
|
|
TARGET_LINK_LIBRARIES (
|
|
|
|
ptExampleFL
|
|
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
|
|
${HDF5_HL_LIB_TARGET}
|
|
|
|
${HDF5_LIB_TARGET}
|
|
|
|
)
|
|
|
|
|
2010-09-03 04:58:17 +08:00
|
|
|
ADD_TEST (NAME cpp_hl_ex_ptExampleFL COMMAND $<TARGET_FILE:ptExampleFL>)
|
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
ADD_EXECUTABLE (ptExampleVL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleVL.cpp)
|
|
|
|
H5_NAMING (ptExampleVL)
|
2010-09-10 00:30:23 +08:00
|
|
|
TARGET_WIN_PROPERTIES (ptExampleVL)
|
2010-05-14 00:01:50 +08:00
|
|
|
TARGET_LINK_LIBRARIES (
|
|
|
|
ptExampleVL
|
|
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
|
|
${HDF5_HL_LIB_TARGET}
|
|
|
|
${HDF5_LIB_TARGET}
|
|
|
|
)
|
2010-09-03 04:58:17 +08:00
|
|
|
|
|
|
|
ADD_TEST (NAME cpp_hl_ex_ptExampleVL COMMAND $<TARGET_FILE:ptExampleVL>)
|
|
|
|
|
2010-05-14 00:01:50 +08:00
|
|
|
ENDIF (HDF5_BUILD_EXAMPLES)
|