From 21d2158a0bf39c08af6c5a24ef9895f819cd3af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Sun, 3 Sep 2017 00:42:00 +0100 Subject: CMake: Initial work to install headers for the benefit of plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- epan/ftypes/CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'epan/ftypes') diff --git a/epan/ftypes/CMakeLists.txt b/epan/ftypes/CMakeLists.txt index 50df55c34b..1ca5e213ee 100644 --- a/epan/ftypes/CMakeLists.txt +++ b/epan/ftypes/CMakeLists.txt @@ -24,6 +24,10 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ) +set(FTYPE_PUBLIC_HEADERS + ftypes.h +) + set(FTYPE_FILES ftypes.c ftype-bytes.c @@ -57,6 +61,12 @@ set_target_properties(ftypes PROPERTIES COMPILE_OPTIONS "${WS_WARNINGS_C_FLAGS}" ) +if(NOT WIN32) + install(FILES ${FTYPE_PUBLIC_HEADERS} + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${CPACK_PACKAGE_NAME}/epan/ftypes" + ) +endif() + CHECKAPI( NAME ftypes -- cgit v1.2.3