mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
20 lines
781 B
CMake
20 lines
781 B
CMake
cmake_minimum_required (VERSION 3.10)
|
|
project (HDF5_HL_CPP_EXAMPLES CXX)
|
|
|
|
# --------------------------------------------------------------------
|
|
# Add in the examples for the Packet Table codes
|
|
# --------------------------------------------------------------------
|
|
add_executable (ptExampleFL ${HDF5_HL_CPP_EXAMPLES_SOURCE_DIR}/ptExampleFL.cpp)
|
|
target_include_directories(ptExampleFL PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
|
TARGET_C_PROPERTIES (ptExampleFL STATIC)
|
|
target_link_libraries (ptExampleFL PRIVATE
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
${HDF5_HL_LIB_TARGET}
|
|
${HDF5_LIB_TARGET}
|
|
)
|
|
set_target_properties (ptExampleFL PROPERTIES FOLDER examples/hl/cpp)
|
|
|
|
if (BUILD_TESTING)
|
|
include (CMakeTests.cmake)
|
|
endif ()
|