diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-09-13 20:44:37 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-09-13 20:44:37 (GMT) |
commit | aad17ae135005ca65bac4647d69833c9e5e8fd3e (patch) | |
tree | ba16e4d65250f2778f76ff6164a511931ff55e10 /tools/libtest/CMakeLists.txt | |
parent | 3457362c9268b6230bb3140c4e0c636743e328b3 (diff) | |
download | hdf5-aad17ae135005ca65bac4647d69833c9e5e8fd3e.zip hdf5-aad17ae135005ca65bac4647d69833c9e5e8fd3e.tar.gz hdf5-aad17ae135005ca65bac4647d69833c9e5e8fd3e.tar.bz2 |
Add new tools lib test folder
Diffstat (limited to 'tools/libtest/CMakeLists.txt')
-rw-r--r-- | tools/libtest/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/libtest/CMakeLists.txt b/tools/libtest/CMakeLists.txt new file mode 100644 index 0000000..f3d28da --- /dev/null +++ b/tools/libtest/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required (VERSION 3.10) +project (HDF5_TOOLS_LIBTEST C) + +#----------------------------------------------------------------------------- +# Add the h5tools_utils test executables +#----------------------------------------------------------------------------- +add_executable (h5tools_test_utils ${HDF5_TOOLS_LIBTEST_SOURCE_DIR}/h5tools_test_utils.c) +target_include_directories(h5tools_test_utils PRIVATE "${HDF5_TOOLS_DIR}/lib;${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>") +if (NOT ONLY_SHARED_LIBS) + TARGET_C_PROPERTIES (h5tools_test_utils STATIC) + target_link_libraries (h5tools_test_utils PRIVATE ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) +else () + TARGET_C_PROPERTIES (h5tools_test_utils SHARED) + target_link_libraries (h5tools_test_utils PRIVATE ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_LIBSH_TARGET} ${HDF5_TEST_LIBSH_TARGET}) +endif () +set_target_properties (h5tools_test_utils PROPERTIES FOLDER tools) + +include (CMakeTests.cmake) |