Install tools/old too
authorEvgeny Vereshchagin <evvers@ya.ru>
Thu, 26 May 2016 08:50:50 +0000 (08:50 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Thu, 26 May 2016 08:50:50 +0000 (08:50 +0000)
tools/CMakeLists.txt
tools/old/CMakeLists.txt [new file with mode: 0644]

index 1a9c2e2..c2b18fc 100644 (file)
@@ -7,3 +7,4 @@ foreach(FIL ${PY_FILES})
 endforeach()
 install(FILES ${C_FILES} DESTINATION share/bcc/tools)
 install(FILES ${TXT_FILES} DESTINATION share/bcc/tools/doc)
+add_subdirectory(old)
diff --git a/tools/old/CMakeLists.txt b/tools/old/CMakeLists.txt
new file mode 100644 (file)
index 0000000..89b76a0
--- /dev/null
@@ -0,0 +1,5 @@
+file(GLOB PY_FILES *.py)
+foreach(FIL ${PY_FILES})
+  get_filename_component(FIL_WE ${FIL} NAME_WE)
+  install(PROGRAMS ${FIL} DESTINATION share/bcc/tools/old RENAME ${FIL_WE})
+endforeach()