Skip to content

Conversation

@martinling
Copy link
Member

Rebase of #1578.

@martinling martinling force-pushed the modern-cmake branch 2 times, most recently from d3ae42f to ef83760 Compare September 19, 2025 01:38
Refactor HackRF build system with a more modern CMake style.
Install files to allow library users using CMake to
find_project(HackRF CONFIG) and obtain HackRF::hackrf
and/or HackRF::hackrf_static library targets.

Add options ENABLE_STATIC_LIB and ENABLE_SHARED_LIB
to allow shared or static library to be disabled.
(Default builds both shared and static libraries.)

Add option ENABLE_HACKRF_SWEEP, when disabled allows
building without FFT library. (Default enabled.)

Add option DISABLE_USB_DEVICE_DISCOVERY for a compile definition
which could be used to alter libusb usage as needed on Android.
Modernize CMake usage in scripts to define a build directory
using the cmake -B flag, use cmake --build rather than just make.
@martinling martinling force-pushed the modern-cmake branch 2 times, most recently from a07fc71 to b8dae7a Compare September 19, 2025 02:49
@martinling martinling mentioned this pull request Sep 19, 2025
@maitbot
Copy link
Contributor

maitbot commented Sep 25, 2025

This looks good to me!

@martinling martinling marked this pull request as ready for review September 30, 2025 16:24
@mossmann mossmann merged commit ab60569 into greatscottgadgets:master Sep 30, 2025
61 checks passed
@mossmann
Copy link
Member

Thank you, @maitbot and @martinling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants