diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/rtlsdr/tools.diff | |
Diffstat (limited to 'vcpkg/ports/rtlsdr/tools.diff')
| -rw-r--r-- | vcpkg/ports/rtlsdr/tools.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/vcpkg/ports/rtlsdr/tools.diff b/vcpkg/ports/rtlsdr/tools.diff new file mode 100644 index 0000000..e433a36 --- /dev/null +++ b/vcpkg/ports/rtlsdr/tools.diff @@ -0,0 +1,26 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 18c3821..52f4991 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -103,8 +103,12 @@ add_executable(rtl_power rtl_power.c) + add_executable(rtl_biast rtl_biast.c) + set(INSTALL_TARGETS rtlsdr rtlsdr_static rtl_sdr rtl_tcp rtl_test rtl_fm rtl_eeprom rtl_adsb rtl_power rtl_biast) + ++option(BUILD_TOOLS "Build tools" ON) + foreach(executable IN ITEMS rtl_sdr rtl_tcp rtl_test rtl_fm rtl_eeprom rtl_adsb rtl_power rtl_biast) + target_link_libraries(${executable} convenience_static ${rtlsdr_target} ${THREADS_PTHREADS_LIBRARY}) ++ if(NOT BUILD_TOOLS) ++ set_target_properties(${executable} PROPERTIES EXCLUDE_FROM_ALL 1) ++ endif() + endforeach() + if(0) + target_link_libraries(rtl_sdr rtlsdr convenience_static +@@ -175,6 +179,8 @@ endif() + # Install built library files & utilities + ######################################################################## + install(TARGETS ${rtlsdr_target} EXPORT RTLSDR-export) ++if(BUILD_TOOLS) + install(TARGETS rtl_sdr rtl_tcp rtl_test rtl_fm rtl_eeprom rtl_adsb rtl_power rtl_biast + DESTINATION ${CMAKE_INSTALL_BINDIR} + ) ++endif() |