2015-02-19 00:56:22 +08:00
|
|
|
cmake_minimum_required (VERSION 3.1.0)
|
2010-05-14 00:01:50 +08:00
|
|
|
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
|
|
|
|
# --------------------------------------------------------------------
|
2014-03-12 05:14:57 +08:00
|
|
|
add_executable (ptExampleFL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleFL.cpp)
|
2011-02-25 03:43:07 +08:00
|
|
|
TARGET_NAMING (ptExampleFL ${LIB_TYPE})
|
2015-03-26 06:08:46 +08:00
|
|
|
TARGET_C_PROPERTIES (ptExampleFL ${LIB_TYPE} " " " ")
|
2014-03-12 05:14:57 +08:00
|
|
|
target_link_libraries (
|
2010-12-04 06:26:37 +08:00
|
|
|
ptExampleFL
|
|
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
|
|
${HDF5_HL_LIB_TARGET}
|
|
|
|
${HDF5_LIB_TARGET}
|
|
|
|
)
|
2014-03-12 05:14:57 +08:00
|
|
|
set_target_properties (ptExampleFL PROPERTIES FOLDER examples/hl/cpp)
|
2010-05-14 00:01:50 +08:00
|
|
|
|
2014-03-12 05:14:57 +08:00
|
|
|
if (BUILD_TESTING)
|
|
|
|
include (CMakeTests.cmake)
|
|
|
|
endif (BUILD_TESTING)
|