From 1a0d6509f6199984e60e072ee58877d24dbd4047 Mon Sep 17 00:00:00 2001
From: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Date: Fri, 8 May 2026 23:38:04 +0200
Subject: [PATCH] cmake: use GR_INSTALL_LIBRARY to install modules

---
 cmake/Modules/targetConfig.cmake.in | 6 +++---
 lib/CMakeLists.txt                  | 6 +++++-
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/cmake/Modules/targetConfig.cmake.in b/cmake/Modules/targetConfig.cmake.in
index c838b74..b013609 100644
--- a/cmake/Modules/targetConfig.cmake.in
+++ b/cmake/Modules/targetConfig.cmake.in
@@ -1,4 +1,4 @@
-# Copyright 2011-2020 Free Software Foundation, Inc.
+# Copyright 2011-2026 Free Software Foundation, Inc.
 #
 # This file is part of gr-iqbalance
 #
@@ -6,8 +6,8 @@
 
 include(CMakeFindDependencyMacro)
 
-set(target_deps "@TARGET_DEPENDENCIES@")
+set(target_deps "@GR_LIB_EXPORT_DEPS@")
 foreach(dep IN LISTS target_deps)
     find_dependency(${dep})
 endforeach()
-include("${CMAKE_CURRENT_LIST_DIR}/@TARGET@Targets.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/@GR_LIB_TARGET@Targets.cmake")
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 789ccb1..ab542ba 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -35,7 +35,11 @@ endif(APPLE)
 # Install built library files
 ########################################################################
 include(GrMiscUtils)
-GR_LIBRARY_FOO(gnuradio-iqbalance)
+
+GR_INSTALL_LIBRARY(
+    TARGET gnuradio-iqbalance
+    COMPONENT gnuradio-iqbalance
+)
 
 ########################################################################
 # Print summary
-- 
2.53.0

