aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/CMakeLists.txt7
-rw-r--r--host/lib/rc/CMakeLists.txt11
2 files changed, 17 insertions, 1 deletions
diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt
index 18bc47f54..4d747c9c7 100644
--- a/host/lib/CMakeLists.txt
+++ b/host/lib/CMakeLists.txt
@@ -131,6 +131,11 @@ if(ENABLE_C_API)
endif(ENABLE_C_API)
########################################################################
+# Add common resource compiler subdirectory
+########################################################################
+add_subdirectory(rc)
+
+########################################################################
# Add DLL resource file to Windows build
########################################################################
if(MSVC)
@@ -172,7 +177,7 @@ if(ENABLE_MPMD)
list(APPEND libuhd_sources $<TARGET_OBJECTS:uhd_rpclib>)
endif()
add_library(uhd SHARED ${libuhd_sources})
-target_link_libraries(uhd ${Boost_LIBRARIES} ${libuhd_libs})
+target_link_libraries(uhd ${Boost_LIBRARIES} ${libuhd_libs} uhd_rc)
set_target_properties(uhd PROPERTIES DEFINE_SYMBOL "UHD_DLL_EXPORTS")
if(NOT LIBUHDDEV_PKG)
set_target_properties(uhd PROPERTIES SOVERSION "${UHD_ABI_VERSION}")
diff --git a/host/lib/rc/CMakeLists.txt b/host/lib/rc/CMakeLists.txt
new file mode 100644
index 000000000..1595e7e85
--- /dev/null
+++ b/host/lib/rc/CMakeLists.txt
@@ -0,0 +1,11 @@
+#
+# Copyright 2020 Ettus Research, a National Instruments Brand
+#
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+
+include(CMakeRC)
+cmrc_add_resource_library(uhd-resources
+ ALIAS uhd_rc
+ NAMESPACE rc
+)