summaryrefslogtreecommitdiffstats
path: root/hl/test/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:14:45 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2016-05-04 16:14:45 (GMT)
commit0c0d6bd4dfd9fab75e4b3f04284e395cfced69c6 (patch)
treeed4ec7b399dab982f7c5194171f255c837fda3f5 /hl/test/CMakeLists.txt
parent2d36359035b0b17a45ab2cb5721fb7623a21b564 (diff)
downloadhdf5-0c0d6bd4dfd9fab75e4b3f04284e395cfced69c6.zip
hdf5-0c0d6bd4dfd9fab75e4b3f04284e395cfced69c6.tar.gz
hdf5-0c0d6bd4dfd9fab75e4b3f04284e395cfced69c6.tar.bz2
[svn-r29878] Add LD tests to CMake.
Add include guards and Windows guards to dectris_hl_perf.c file.
Diffstat (limited to 'hl/test/CMakeLists.txt')
-rw-r--r--hl/test/CMakeLists.txt27
1 files changed, 20 insertions, 7 deletions
diff --git a/hl/test/CMakeLists.txt b/hl/test/CMakeLists.txt
index bf598c4..42a175f 100644
--- a/hl/test/CMakeLists.txt
+++ b/hl/test/CMakeLists.txt
@@ -26,8 +26,8 @@ MACRO (HL_ADD_EXE hl_name)
TARGET_C_PROPERTIES (hl_${hl_name} STATIC " " " ")
target_link_libraries (hl_${hl_name}
${HDF5_HL_LIB_TARGET}
- ${HDF5_LIB_TARGET}
${HDF5_TEST_LIB_TARGET}
+ ${HDF5_LIB_TARGET}
)
set_target_properties (hl_${hl_name} PROPERTIES FOLDER test/hl)
ENDMACRO (HL_ADD_EXE)
@@ -38,17 +38,20 @@ MACRO (HL_ADD_SHEXE hl_name)
TARGET_C_PROPERTIES (hl_${hl_name} SHARED " " " ")
target_link_libraries (hl_${hl_name}
${HDF5_HL_LIBSH_TARGET}
- ${HDF5_LIBSH_TARGET}
${HDF5_TEST_LIBSH_TARGET}
+ ${HDF5_LIBSH_TARGET}
)
set_target_properties (hl_${hl_name} PROPERTIES FOLDER test/hl)
ENDMACRO (HL_ADD_SHEXE)
-HL_ADD_EXE (test_ds)
-HL_ADD_EXE (test_dset_opt)
-HL_ADD_EXE (test_image)
HL_ADD_EXE (test_lite)
+HL_ADD_EXE (test_image)
+HL_ADD_EXE (test_file_image)
HL_ADD_EXE (test_table)
+HL_ADD_EXE (test_ds)
+HL_ADD_EXE (test_dset_opt)
+HL_ADD_EXE (test_ld)
+HL_ADD_EXE (test_dset_append)
# test_packet has two source files
add_executable (hl_test_packet test_packet.c test_packet_vlen.c)
@@ -56,8 +59,8 @@ TARGET_NAMING (hl_test_packet STATIC)
TARGET_C_PROPERTIES (hl_test_packet STATIC " " " ")
target_link_libraries (hl_test_packet
${HDF5_HL_LIB_TARGET}
- ${HDF5_LIB_TARGET}
${HDF5_TEST_LIB_TARGET}
+ ${HDF5_LIB_TARGET}
)
set_target_properties (hl_test_packet PROPERTIES FOLDER test/hl)
@@ -71,10 +74,20 @@ if (HDF5_BUILD_GENERATORS)
TARGET_C_PROPERTIES (hl_gen_test_ds STATIC " " " ")
target_link_libraries (hl_gen_test_ds
${HDF5_HL_LIB_TARGET}
- ${HDF5_LIB_TARGET}
${HDF5_TEST_LIB_TARGET}
+ ${HDF5_LIB_TARGET}
)
set_target_properties (hl_gen_test_ds PROPERTIES FOLDER test/hl/gen)
+
+ add_executable (hl_gen_test_ld gen_test_ld.c)
+ TARGET_NAMING (hl_gen_test_ld STATIC)
+ TARGET_C_PROPERTIES (hl_gen_test_ld STATIC " " " ")
+ target_link_libraries (hl_gen_test_ld
+ ${HDF5_HL_LIB_TARGET}
+ ${HDF5_TEST_LIB_TARGET}
+ ${HDF5_LIB_TARGET}
+ )
+ set_target_properties (hl_gen_test_ld PROPERTIES FOLDER test/hl/gen)
endif (HDF5_BUILD_GENERATORS)
include (CMakeTests.cmake)