Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
440945a0
Commit
440945a0
authored
Jan 10, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make tools/ support cmake
parent
b958dfad
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
27 additions
and
0 deletions
+27
-0
CMakeLists.txt
CMakeLists.txt
+1
-0
CMakeLists.txt
tools/CMakeLists.txt
+10
-0
CMakeLists.txt
tools/parallel_http/CMakeLists.txt
+2
-0
CMakeLists.txt
tools/rpc_press/CMakeLists.txt
+3
-0
CMakeLists.txt
tools/rpc_replay/CMakeLists.txt
+3
-0
CMakeLists.txt
tools/rpc_view/CMakeLists.txt
+6
-0
CMakeLists.txt
tools/trackme_server/CMakeLists.txt
+2
-0
No files found.
CMakeLists.txt
View file @
440945a0
...
...
@@ -309,6 +309,7 @@ add_subdirectory(src)
if
(
BUILD_UNIT_TESTS
)
add_subdirectory
(
test
)
endif
()
add_subdirectory
(
tools
)
file
(
COPY
${
CMAKE_CURRENT_BINARY_DIR
}
/idl_options.pb.h
DESTINATION
${
CMAKE_CURRENT_BINARY_DIR
}
/output/include
)
...
...
tools/CMakeLists.txt
0 → 100644
View file @
440945a0
set
(
CMAKE_CPP_FLAGS
"-DGFLAGS_NS=
${
GFLAGS_NS
}
"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CPP_FLAGS
}
-DNDEBUG -O2 -D__const__= -pipe -W -Wall -Wno-unused-parameter -fPIC -fno-omit-frame-pointer"
)
use_cxx11
()
set
(
EXECUTABLE_OUTPUT_PATH
${
CMAKE_BINARY_DIR
}
/output/bin
)
add_subdirectory
(
parallel_http
)
add_subdirectory
(
rpc_press
)
add_subdirectory
(
rpc_replay
)
add_subdirectory
(
rpc_view
)
add_subdirectory
(
trackme_server
)
tools/parallel_http/CMakeLists.txt
0 → 100644
View file @
440945a0
add_executable
(
parallel_http parallel_http.cpp
)
target_link_libraries
(
parallel_http brpc_static
${
DYNAMIC_LIB
}
)
tools/rpc_press/CMakeLists.txt
0 → 100644
View file @
440945a0
file
(
GLOB SOURCES
"
${
CMAKE_SOURCE_DIR
}
/tools/rpc_press/*.cpp"
)
add_executable
(
rpc_press
${
SOURCES
}
)
target_link_libraries
(
rpc_press brpc_static
${
DYNAMIC_LIB
}
)
tools/rpc_replay/CMakeLists.txt
0 → 100644
View file @
440945a0
file
(
GLOB SOURCES
"
${
CMAKE_SOURCE_DIR
}
/tools/rpc_replay/*.cpp"
)
add_executable
(
rpc_replay
${
SOURCES
}
)
target_link_libraries
(
rpc_replay brpc_static
${
DYNAMIC_LIB
}
)
tools/rpc_view/CMakeLists.txt
0 → 100644
View file @
440945a0
include
(
FindProtobuf
)
protobuf_generate_cpp
(
PROTO_SRC PROTO_HEADER view.proto
)
include_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
)
add_executable
(
rpc_view rpc_view.cpp
${
PROTO_SRC
}
)
target_link_libraries
(
rpc_view brpc_static
${
DYNAMIC_LIB
}
)
tools/trackme_server/CMakeLists.txt
0 → 100644
View file @
440945a0
add_executable
(
trackme_server trackme_server.cpp
)
target_link_libraries
(
trackme_server brpc_static
${
DYNAMIC_LIB
}
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment