Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
f387f5dd
Commit
f387f5dd
authored
Mar 15, 2017
by
Brenden Blanco
Committed by
GitHub
Mar 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1050 from palmtenor/exampleinstall
Add build option for installing C++ examples
parents
dd3867d3
db4d4267
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
examples/cpp/CMakeLists.txt
examples/cpp/CMakeLists.txt
+12
-7
No files found.
examples/cpp/CMakeLists.txt
View file @
f387f5dd
...
...
@@ -3,30 +3,35 @@
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src/cc
)
option
(
INSTALL_CPP_EXAMPLES
"Install C++ examples. Those binaries are statically linked and can take plenty of disk space"
OFF
)
add_executable
(
HelloWorld HelloWorld.cc
)
target_link_libraries
(
HelloWorld bcc-static
)
install
(
TARGETS HelloWorld DESTINATION share/bcc/examples/cpp
)
add_executable
(
CPUDistribution CPUDistribution.cc
)
target_link_libraries
(
CPUDistribution bcc-static
)
install
(
TARGETS CPUDistribution DESTINATION share/bcc/examples/cpp
)
add_executable
(
RecordMySQLQuery RecordMySQLQuery.cc
)
target_link_libraries
(
RecordMySQLQuery bcc-static
)
install
(
TARGETS RecordMySQLQuery DESTINATION share/bcc/examples/cpp
)
add_executable
(
TCPSendStack TCPSendStack.cc
)
target_link_libraries
(
TCPSendStack bcc-static
)
install
(
TARGETS TCPSendStack DESTINATION share/bcc/examples/cpp
)
add_executable
(
RandomRead RandomRead.cc
)
target_link_libraries
(
RandomRead bcc-static
)
install
(
TARGETS RandomRead DESTINATION share/bcc/examples/cpp
)
add_executable
(
LLCStat LLCStat.cc
)
target_link_libraries
(
LLCStat bcc-static
)
install
(
TARGETS LLCStat DESTINATION share/bcc/examples/cpp
)
add_executable
(
FollyRequestContextSwitch FollyRequestContextSwitch.cc
)
target_link_libraries
(
FollyRequestContextSwitch bcc-static
)
install
(
TARGETS FollyRequestContextSwitch DESTINATION share/bcc/examples/cpp
)
if
(
INSTALL_CPP_EXAMPLES
)
install
(
TARGETS HelloWorld DESTINATION share/bcc/examples/cpp
)
install
(
TARGETS CPUDistribution DESTINATION share/bcc/examples/cpp
)
install
(
TARGETS RecordMySQLQuery DESTINATION share/bcc/examples/cpp
)
install
(
TARGETS TCPSendStack DESTINATION share/bcc/examples/cpp
)
install
(
TARGETS RandomRead DESTINATION share/bcc/examples/cpp
)
install
(
TARGETS LLCStat DESTINATION share/bcc/examples/cpp
)
install
(
TARGETS FollyRequestContextSwitch DESTINATION share/bcc/examples/cpp
)
endif
(
INSTALL_CPP_EXAMPLES
)
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