From 3f2c6feacbe6a0810bb237174d7d4e68560ba3db Mon Sep 17 00:00:00 2001 From: jcmartin Date: Wed, 6 Aug 2025 12:01:19 -0700 Subject: [PATCH] Allow compiling for static linking --- host/CMakeLists.txt | 6 +++--- host/libraries/CMakeLists.txt | 14 +++++++------- host/utilities/bladeRF-power/CMakeLists.txt | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 4986b9b1..b2202296 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -209,9 +209,9 @@ endif() # Process subdirectories ################################################################################ add_subdirectory(libraries) -add_subdirectory(misc) -add_subdirectory(utilities) -add_subdirectory(common) +#add_subdirectory(misc) +#add_subdirectory(utilities) +#add_subdirectory(common) ################################################################################ # Create uninstall target diff --git a/host/libraries/CMakeLists.txt b/host/libraries/CMakeLists.txt index e821c040..f494e50e 100644 --- a/host/libraries/CMakeLists.txt +++ b/host/libraries/CMakeLists.txt @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.5) add_subdirectory(libbladeRF) # Conditionally add the test directory -option(TEST_LIBBLADERF "Enables libbladeRF test output" ON) -if(TEST_LIBBLADERF) - message(STATUS "libbladeRF_test: enabled") - add_subdirectory(libbladeRF_test) -else() - message(STATUS "libbladeRF_test: disabled") -endif() +# option(TEST_LIBBLADERF "Enables libbladeRF test output" ON) +# if(TEST_LIBBLADERF) +# message(STATUS "libbladeRF_test: enabled") +# add_subdirectory(libbladeRF_test) +# else() +# message(STATUS "libbladeRF_test: disabled") +# endif() diff --git a/host/utilities/bladeRF-power/CMakeLists.txt b/host/utilities/bladeRF-power/CMakeLists.txt index 458afe90..20241c7a 100644 --- a/host/utilities/bladeRF-power/CMakeLists.txt +++ b/host/utilities/bladeRF-power/CMakeLists.txt @@ -3,6 +3,7 @@ project(bladeRF-power LANGUAGES C) set (CURSES_NEED_NCURSES TRUE) set (CURSES_NEED_WIDE TRUE) +set (CMAKE_PREFIX_PATH /opt/homebrew/opt/ncurses) find_package(Curses REQUIRED) include_directories(