summaryrefslogtreecommitdiffstats
path: root/perform/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-12-13 13:31:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-12-13 13:31:44 (GMT)
commit614cd7c0b10ca31907c17e601757eb682f37f127 (patch)
treef88aa0cfc6acdb8c0ecc9cefd7e1077c4c59e3c9 /perform/CMakeLists.txt
parentc86e9a48e49e3381bbb0cbf525028e83fd5c9dd3 (diff)
downloadhdf5-614cd7c0b10ca31907c17e601757eb682f37f127.zip
hdf5-614cd7c0b10ca31907c17e601757eb682f37f127.tar.gz
hdf5-614cd7c0b10ca31907c17e601757eb682f37f127.tar.bz2
[svn-r19884] Corrected time_of_day define configuration, found during parallel CMake build.
Tested: local linux
Diffstat (limited to 'perform/CMakeLists.txt')
-rw-r--r--perform/CMakeLists.txt36
1 files changed, 36 insertions, 0 deletions
diff --git a/perform/CMakeLists.txt b/perform/CMakeLists.txt
index f85e1d4..fc1d252 100644
--- a/perform/CMakeLists.txt
+++ b/perform/CMakeLists.txt
@@ -39,6 +39,24 @@ TARGET_LINK_LIBRARIES (h5perf_serial ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET}
ADD_TEST (NAME h5perf_serial COMMAND $<TARGET_FILE:h5perf_serial>)
+IF (HDF5_BUILD_PERFORM_STANDALONE)
+ #-- Adding test for h5perf_serial_alone
+ SET (h5perf_serial_alone_SRCS
+ ${HDF5_PERFORM_SOURCE_DIR}/sio_timer.c
+ ${HDF5_PERFORM_SOURCE_DIR}/sio_perf.c
+ ${HDF5_PERFORM_SOURCE_DIR}/sio_engine.c
+ )
+ ADD_EXECUTABLE (h5perf_serial_alone ${h5perf_serial_alone_SRCS})
+ SET_PROPERTY (TARGET h5perf_serial_alone
+ APPEND PROPERTY COMPILE_DEFINITIONS STANDALONE
+ )
+ H5_NAMING (h5perf_serial_alone)
+ TARGET_WIN_PROPERTIES (h5perf_serial_alone)
+ TARGET_LINK_LIBRARIES (h5perf_serial_alone ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET})
+
+ ADD_TEST (NAME h5perf_serial_alone COMMAND $<TARGET_FILE:h5perf_serial_alone>)
+ENDIF (HDF5_BUILD_PERFORM_STANDALONE)
+
#-- Adding test for chunk
SET (chunk_SRCS
${HDF5_PERFORM_SOURCE_DIR}/chunk.c
@@ -108,6 +126,24 @@ IF (H5_HAVE_PARALLEL)
ADD_TEST (NAME h5perf COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:h5perf>)
+ IF (HDF5_BUILD_PERFORM_STANDALONE)
+ #-- Adding test for h5perf
+ SET (h5perf_alone_SRCS
+ ${HDF5_PERFORM_SOURCE_DIR}/pio_timer.c
+ ${HDF5_PERFORM_SOURCE_DIR}/pio_perf.c
+ ${HDF5_PERFORM_SOURCE_DIR}/pio_engine.c
+ )
+ ADD_EXECUTABLE (h5perf_alone ${h5perf_alone_SRCS})
+ SET_PROPERTY (TARGET h5perf_alone
+ APPEND PROPERTY COMPILE_DEFINITIONS STANDALONE
+ )
+ H5_NAMING (h5perf_alone)
+ TARGET_WIN_PROPERTIES (h5perf_alone)
+ TARGET_LINK_LIBRARIES (h5perf_alone ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
+
+ ADD_TEST (NAME h5perf_alone COMMAND ${MPIEXEC} ${MPIEXEC_PREFLAGS} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_POSTFLAGS} $<TARGET_FILE:h5perf_alone>)
+ ENDIF (HDF5_BUILD_PERFORM_STANDALONE)
+
#-- Adding test for benchpar
SET (benchpar_SRCS
${HDF5_PERFORM_SOURCE_DIR}/benchpar.c