path: root/capchild/CMakeLists.txt
diff options
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 /capchild/CMakeLists.txt
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 'capchild/CMakeLists.txt')
1 files changed, 2 insertions, 0 deletions
diff --git a/capchild/CMakeLists.txt b/capchild/CMakeLists.txt
index 7fe2e8b850..cfea58eb99 100644
--- a/capchild/CMakeLists.txt
+++ b/capchild/CMakeLists.txt
@@ -26,6 +26,8 @@ add_library(capchild STATIC
+target_link_libraries(capchild PRIVATE wsutil)
set_target_properties(capchild PROPERTIES
FOLDER "Libs")