diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2017-09-03 00:42:00 +0100 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2017-09-17 07:22:16 +0000 |
commit | 21d2158a0bf39c08af6c5a24ef9895f819cd3af3 (patch) | |
tree | f629500b12b5ba12083d017247a0efce93893478 /epan/ftypes | |
parent | 6c4b9360e59eb94e3219c6c1bf9a72a1c35a674d (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/ftypes')
-rw-r--r-- | epan/ftypes/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
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 |