From b0f8e00c943dbe501010970b24556e16c1a91521 Mon Sep 17 00:00:00 2001 From: Zaafar Ahmed Date: Thu, 12 May 2016 03:38:35 +0500 Subject: [PATCH] Updated the cmake file system to include lua and new networking tools. --- examples/CMakeLists.txt | 1 + examples/lua/CMakeLists.txt | 4 ++++ examples/networking/CMakeLists.txt | 2 ++ examples/networking/http_filter/CMakeLists.txt | 4 ++++ examples/networking/tunnel_monitor/CMakeLists.txt | 4 ++++ 5 files changed, 15 insertions(+) create mode 100644 examples/lua/CMakeLists.txt create mode 100644 examples/networking/http_filter/CMakeLists.txt create mode 100644 examples/networking/tunnel_monitor/CMakeLists.txt diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 48a90a0..95c47d7 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -3,3 +3,4 @@ install(PROGRAMS ${EXAMPLE_PROGRAMS} DESTINATION share/bcc/examples) add_subdirectory(networking) add_subdirectory(tracing) +add_subdirectory(lua) \ No newline at end of file diff --git a/examples/lua/CMakeLists.txt b/examples/lua/CMakeLists.txt new file mode 100644 index 0000000..b322078 --- /dev/null +++ b/examples/lua/CMakeLists.txt @@ -0,0 +1,4 @@ +file(GLOB C_FILES *.c) +file(GLOB LUA_FILES *.lua) +install(FILES ${C_FILES} DESTINATION share/bcc/examples/lua) +install(PROGRAMS ${LUA_FILES} DESTINATION share/bcc/examples/lua) \ No newline at end of file diff --git a/examples/networking/CMakeLists.txt b/examples/networking/CMakeLists.txt index e018980..ddf326f 100644 --- a/examples/networking/CMakeLists.txt +++ b/examples/networking/CMakeLists.txt @@ -6,3 +6,5 @@ install(PROGRAMS ${EXAMPLE_PROGRAMS} DESTINATION share/bcc/examples/networking) add_subdirectory(distributed_bridge) add_subdirectory(neighbor_sharing) add_subdirectory(vlan_learning) +add_subdirectory(tunnel_monitor) +add_subdirectory(http_filter) \ No newline at end of file diff --git a/examples/networking/http_filter/CMakeLists.txt b/examples/networking/http_filter/CMakeLists.txt new file mode 100644 index 0000000..6f854e7 --- /dev/null +++ b/examples/networking/http_filter/CMakeLists.txt @@ -0,0 +1,4 @@ +set(FILES http-parse-complete.c http-parse-simple.c README.md) +set(PROGRAMS http-parse-complete.py http-parse-simple.py) +install(FILES ${FILES} DESTINATION share/bcc/examples/networking/http_filter) +install(PROGRAMS ${PROGRAMS} DESTINATION share/bcc/examples/networking/http_filter) diff --git a/examples/networking/tunnel_monitor/CMakeLists.txt b/examples/networking/tunnel_monitor/CMakeLists.txt new file mode 100644 index 0000000..edc7c08 --- /dev/null +++ b/examples/networking/tunnel_monitor/CMakeLists.txt @@ -0,0 +1,4 @@ +set(FILES README.md chord.png monitor.c simulation.py vxlan.jpg) +set(PROGRAMS main.py monitor.py setup.sh traffic.sh) +install(FILES ${FILES} DESTINATION share/bcc/examples/networking/tunnel_monitor) +install(PROGRAMS ${PROGRAMS} DESTINATION share/bcc/examples/networking/tunnel_monitor) \ No newline at end of file -- 2.7.4