Add microbenchmarks to build system.
authorMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 2 Feb 2010 22:23:18 +0000 (14:23 -0800)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Tue, 2 Feb 2010 22:23:18 +0000 (14:23 -0800)
CMakeLists.txt
microbench/CMakeLists.txt [new file with mode: 0644]

index 4729a67..f7c573d 100644 (file)
@@ -10,3 +10,4 @@ set(LIBS3_BUILD_DIR "${CMAKE_SOURCE_DIR}/libs3-1.4/build")
 add_definitions(-D_FILE_OFFSET_BITS=64)
 add_subdirectory(bluesky)
 add_subdirectory(nfs3)
+add_subdirectory(microbench)
diff --git a/microbench/CMakeLists.txt b/microbench/CMakeLists.txt
new file mode 100644 (file)
index 0000000..80119f5
--- /dev/null
@@ -0,0 +1,7 @@
+add_executable(bench bench.c)
+target_link_libraries(bench pthread rt)
+
+add_executable(readbench readbench.c)
+target_link_libraries(readbench pthread rt)
+
+set(CMAKE_C_FLAGS "-Wall -std=gnu99 ${CMAKE_C_FLAGS}")