aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2019-01-10 01:45:00 +0000
committerPeter Wu <peter@lekensteyn.nl>2019-01-20 11:50:10 +0000
commita3991874eb3d470a4adfcdef7903ab8d6dd8f881 (patch)
tree22a42523aae8ff158780e7504b072c1383aa4e91 /codecs
parentbe103a4286a55361d93f1aa2c25d8a180357a7b4 (diff)
CMake: Replace PACKAGELIST magic
This is more explicit and easier to read with slightly better locality while using less code. Also less awkward when the package doesn't fit the narrow package list expectations. The ws_find_package() macro doesn't include all the status messages. The choice was to rely on standard find_package() and feature_summary() output and be less verbose. Avoid polluting the CLI build interface. Per target include paths and macro definitions are preferred. Because this patch intentionally removes the global CMAKE_*_FLAGS and include_directories() usage in favor of target properties, some untested build configurations may inadvertently break because of missing ${PACKAGE}_INCLUDE_DIRS or ${PACKAGE}_DEFINITIONS. This required a manual review of dependencies that might have been incomplete. ${PACKAGE_VAR}_LINK_FLAGS seems to be unused. Changing the CMake Qt code to use more modern CMake component syntax is left as future work. Change-Id: I3ed75252189a6e05a23ed6e619088f519cd7ed78 Reviewed-on: https://code.wireshark.org/review/31496 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'codecs')
-rw-r--r--codecs/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/codecs/CMakeLists.txt b/codecs/CMakeLists.txt
index 54e1eec77f..aba9e8a41e 100644
--- a/codecs/CMakeLists.txt
+++ b/codecs/CMakeLists.txt
@@ -64,6 +64,13 @@ set_target_properties(wscodecs PROPERTIES
target_link_libraries(wscodecs ${wscodecs_LIBS})
+target_include_directories(wscodecs SYSTEM
+ PRIVATE
+ ${SBC_INCLUDE_DIRS}
+ ${SPANDSP_INCLUDE_DIRS}
+ ${BCG729_INCLUDE_DIRS}
+)
+
install(TARGETS wscodecs
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}