Add bpf_module.h to CMakeLists.txt
authorBrian Smith <bcsmith@fb.com>
Fri, 5 Feb 2016 22:03:16 +0000 (14:03 -0800)
committerBrian Smith <bcsmith@fb.com>
Fri, 5 Feb 2016 22:03:16 +0000 (14:03 -0800)
The C++ API should also be exported, in addition to the C API.
Because type safety is nice.

src/cc/CMakeLists.txt

index c279a53..ca7dfdf 100644 (file)
@@ -55,7 +55,7 @@ install(TARGETS bcc LIBRARY COMPONENT libbcc
 install(DIRECTORY export/ COMPONENT libbcc
   DESTINATION share/bcc/include/bcc
   FILES_MATCHING PATTERN "*.h")
-install(FILES bpf_common.h ../libbpf.h COMPONENT libbcc
+install(FILES bpf_common.h bpf_module.h ../libbpf.h COMPONENT libbcc
   DESTINATION include/bcc)
 install(DIRECTORY compat/linux/ COMPONENT libbcc
   DESTINATION include/bcc/compat/linux