Permalink
Browse files

cmake build for mstress benchmark

  • Loading branch information...
1 parent 308dbe7 commit 1d8eb39f62780a129a0d799bc6ceee3f55c024da Jeremy R. Fishman committed Jan 31, 2013
Showing with 38 additions and 1 deletion.
  1. +1 −0 CMakeLists.txt
  2. +36 −0 benchmarks/mstress/CMakeLists.txt
  3. +1 −1 benchmarks/mstress/mstress_client.cc
View
@@ -165,6 +165,7 @@ add_subdirectory (${KFS_DIR_PREFIX}src/cc/qcdio src/cc/qcdio)
add_subdirectory (${KFS_DIR_PREFIX}src/cc/qcrs src/cc/qcrs)
add_subdirectory (${KFS_DIR_PREFIX}examples/cc examples/cc)
+add_subdirectory (${KFS_DIR_PREFIX}benchmarks/mstress benchmarks/mstress)
IF (NOT ${JAVA_INCLUDE_PATH} STREQUAL "" AND NOT DEFINED JNI_FOUND)
set(JNI_FOUND TRUE)
@@ -0,0 +1,36 @@
+# $Id$
+#
+# Copyright 2012 Quantcast Corp.
+#
+# This file is part of Quantcast File System (QFS).
+#
+# Licensed under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied. See the License for the specific language governing
+# permissions and limitations under the License.
+#
+# Build the C++ mstress benchmark
+#
+
+add_executable (mstress_client mstress_client.cc)
+IF (USE_STATIC_LIB_LINKAGE)
+ add_dependencies (mstress_client kfsClient)
+ target_link_libraries (mstress_client kfsClient qcdio pthread)
+ELSE (USE_STATIC_LIB_LINKAGE)
+ add_dependencies (mstress_client kfsClient-shared)
+ target_link_libraries (mstress_client kfsClient-shared qcdio-shared pthread)
+ENDIF (USE_STATIC_LIB_LINKAGE)
+
+IF (NOT APPLE)
+ target_link_libraries (rt)
+ENDIF (NOT APPLE)
+
+install (TARGETS mstress_client
+ RUNTIME DESTINATION bin/benchmarks)
@@ -38,7 +38,7 @@
using namespace std;
-#include "KfsClient.h"
+#include "libclient/KfsClient.h"
FILE* logFile = stdout;

0 comments on commit 1d8eb39

Please sign in to comment.