mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-09 07:32:32 +08:00
451a91e53b
Tested: local linux
32 lines
1.1 KiB
CMake
32 lines
1.1 KiB
CMake
cmake_minimum_required (VERSION 3.1.0)
|
|
PROJECT (HDF5_HL_CPP_TEST)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Setup include Directories
|
|
#-----------------------------------------------------------------------------
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_SRC_DIR}/src)
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_SRC_DIR}/c++/src)
|
|
|
|
# --------------------------------------------------------------------
|
|
# Add in the unit tests for the packet table c++ wrapper
|
|
# --------------------------------------------------------------------
|
|
|
|
INCLUDE_DIRECTORIES (${HDF5_TEST_SRC_DIR})
|
|
INCLUDE_DIRECTORIES (${HDF5_HL_SRC_DIR}/test)
|
|
INCLUDE_DIRECTORIES (${HDF5_CPP_SRC_DIR}/src)
|
|
|
|
add_executable (hl_ptableTest ${HDF5_HL_CPP_TEST_SOURCE_DIR}/ptableTest.cpp)
|
|
TARGET_C_PROPERTIES (hl_ptableTest ${LIB_TYPE} " " " ")
|
|
TARGET_NAMING (hl_ptableTest ${LIB_TYPE})
|
|
target_link_libraries (
|
|
hl_ptableTest
|
|
${HDF5_LIB_TARGET}
|
|
${HDF5_TEST_LIB_TARGET}
|
|
${HDF5_CPP_LIB_TARGET}
|
|
${HDF5_HL_LIB_TARGET}
|
|
${HDF5_HL_CPP_LIB_TARGET}
|
|
)
|
|
set_target_properties (hl_ptableTest PROPERTIES FOLDER test/hl/cpp)
|
|
|
|
include (CMakeTests.cmake)
|