aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-09-03 00:42:00 +0100
committerJoão Valverde <j@v6e.pt>2017-09-17 07:22:16 +0000
commit21d2158a0bf39c08af6c5a24ef9895f819cd3af3 (patch)
treef629500b12b5ba12083d017247a0efce93893478 /epan/dfilter
parent6c4b9360e59eb94e3219c6c1bf9a72a1c35a674d (diff)
CMake: Initial work to install headers for the benefit of plugins
To be continued incrementally to fix gaps and omissions. If we are willing to reorganize the source tree to have one or two header include folders this could be simplified considerably. It would also force developers to give more consideration to API issues, which is a good thing. See also e7ef19efc0e928b50644b37772ccbf176e74f766. Bug: 14062 Change-Id: I0759da2f9793cfb5cf92c9e231457bba43df4353 Reviewed-on: https://code.wireshark.org/review/23548 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/CMakeLists.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/epan/dfilter/CMakeLists.txt b/epan/dfilter/CMakeLists.txt
index b4eb5fb46d..4a2ebad0f9 100644
--- a/epan/dfilter/CMakeLists.txt
+++ b/epan/dfilter/CMakeLists.txt
@@ -24,6 +24,11 @@ include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
)
+set(DFILTER_PUBLIC_HEADERS
+ dfilter.h
+ drange.h
+)
+
set(DFILTER_FILES
dfilter.c
dfilter-macro.c
@@ -68,6 +73,12 @@ set_target_properties(dfilter PROPERTIES
COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}"
)
+if(NOT WIN32)
+ install(FILES ${DFILTER_PUBLIC_HEADERS}
+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${CPACK_PACKAGE_NAME}/epan/dfilter"
+ )
+endif()
+
CHECKAPI(
NAME
dfilter