Skip to content

Commit

Permalink
cmake build for mstress benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy R. Fishman committed Jan 31, 2013
1 parent 308dbe7 commit 1d8eb39
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Expand Up @@ -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)
Expand Down
36 changes: 36 additions & 0 deletions benchmarks/mstress/CMakeLists.txt
@@ -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)
2 changes: 1 addition & 1 deletion benchmarks/mstress/mstress_client.cc
Expand Up @@ -38,7 +38,7 @@

using namespace std;

#include "KfsClient.h"
#include "libclient/KfsClient.h"

FILE* logFile = stdout;

Expand Down

0 comments on commit 1d8eb39

Please sign in to comment.