diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2014-12-22 14:45:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2014-12-22 14:45:46 (GMT) |
commit | e0c586cd98df58c28952c8ae8089957fe0764baa (patch) | |
tree | 1c05fe9ade3d077db9c41eaff113ec7bf00813d2 /tools | |
parent | 51abd359f3932864cf885c662ba098ead21655c6 (diff) | |
download | hdf5-e0c586cd98df58c28952c8ae8089957fe0764baa.zip hdf5-e0c586cd98df58c28952c8ae8089957fe0764baa.tar.gz hdf5-e0c586cd98df58c28952c8ae8089957fe0764baa.tar.bz2 |
[svn-r25918] If not testing skip building test only programs.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perform/CMakeLists.txt | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tools/perform/CMakeLists.txt b/tools/perform/CMakeLists.txt index 6887c60..af3121e 100644 --- a/tools/perform/CMakeLists.txt +++ b/tools/perform/CMakeLists.txt @@ -74,15 +74,17 @@ TARGET_C_PROPERTIES (overhead " " " ") target_link_libraries (overhead ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET}) set_target_properties (overhead PROPERTIES FOLDER perform) +if (BUILD_TESTING) #-- Adding test for perf_meta -set (perf_meta_SRCS - ${HDF5_PERFORM_SOURCE_DIR}/perf_meta.c -) -add_executable (perf_meta ${perf_meta_SRCS}) -TARGET_NAMING (perf_meta ${LIB_TYPE}) -TARGET_C_PROPERTIES (perf_meta " " " ") -target_link_libraries (perf_meta ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) -set_target_properties (perf_meta PROPERTIES FOLDER perform) + set (perf_meta_SRCS + ${HDF5_PERFORM_SOURCE_DIR}/perf_meta.c + ) + add_executable (perf_meta ${perf_meta_SRCS}) + TARGET_NAMING (perf_meta ${LIB_TYPE}) + TARGET_C_PROPERTIES (perf_meta " " " ") + target_link_libraries (perf_meta ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) + set_target_properties (perf_meta PROPERTIES FOLDER perform) +endif (BUILD_TESTING) #-- Adding test for zip_perf set (zip_perf_SRCS @@ -94,7 +96,7 @@ TARGET_C_PROPERTIES (zip_perf " " " ") target_link_libraries (zip_perf ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET}) set_target_properties (zip_perf PROPERTIES FOLDER perform) -if (H5_HAVE_PARALLEL) +if (H5_HAVE_PARALLEL AND BUILD_TESTING) #-- Adding test for h5perf set (h5perf_SRCS ${HDF5_PERFORM_SOURCE_DIR}/pio_timer.c @@ -135,6 +137,6 @@ if (H5_HAVE_PARALLEL) target_link_libraries (benchpar ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) set_target_properties (benchpar PROPERTIES FOLDER perform) endif (HDF5_BUILD_PARALLEL_ALL) -endif (H5_HAVE_PARALLEL) +endif (H5_HAVE_PARALLEL AND BUILD_TESTING) include (CMakeTests.cmake) |