From e88222e8c9189cf9ba54416c7122cd409d71ad17 Mon Sep 17 00:00:00 2001 From: Andrew Beltrano Date: Fri, 17 Nov 2023 16:33:04 -0700 Subject: [PATCH] Add proper magic_enum deps. --- CMakeLists.txt | 1 + linux/wpa-controller/CMakeLists.txt | 1 + tests/unit/CMakeLists.txt | 1 + tests/unit/linux/wpa-controller/CMakeLists.txt | 1 + 4 files changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f16a83f4..8b1b4b47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,6 +52,7 @@ set(protobuf_MODULE_COMPATIBLE TRUE) find_package(gRPC CONFIG REQUIRED) find_package(Protobuf CONFIG REQUIRED) find_package(Threads REQUIRED) +find_package(magic_enum CONFIG REQUIRED) # Enable POSITION_INDEPENDENT_CODE variable to control passing PIE flags to the linker. if (POLICY CMP0083) diff --git a/linux/wpa-controller/CMakeLists.txt b/linux/wpa-controller/CMakeLists.txt index 2223ce1c..948a1cda 100644 --- a/linux/wpa-controller/CMakeLists.txt +++ b/linux/wpa-controller/CMakeLists.txt @@ -17,6 +17,7 @@ target_include_directories(wpa-controller target_link_libraries(wpa-controller PUBLIC libwpa-client + magic_enum::magic_enum ) list(APPEND WPA_CONTROLLER_PUBLIC_HEADERS diff --git a/tests/unit/CMakeLists.txt b/tests/unit/CMakeLists.txt index 38f725fb..0770bd1a 100644 --- a/tests/unit/CMakeLists.txt +++ b/tests/unit/CMakeLists.txt @@ -16,6 +16,7 @@ target_link_libraries(netremote-test-unit PRIVATE Catch2::Catch2WithMain gRPC::grpc++ + magic_enum::magic_enum netremote-service ) diff --git a/tests/unit/linux/wpa-controller/CMakeLists.txt b/tests/unit/linux/wpa-controller/CMakeLists.txt index 724f29a3..365627ef 100644 --- a/tests/unit/linux/wpa-controller/CMakeLists.txt +++ b/tests/unit/linux/wpa-controller/CMakeLists.txt @@ -9,6 +9,7 @@ target_sources(wpa-controller-test-unit target_link_libraries(wpa-controller-test-unit PRIVATE Catch2::Catch2WithMain + magic_enum::magic_enum wpa-controller )