Skip to content

Commit

Permalink
update cmake options to common naming scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Feb 23, 2024
1 parent 39717c2 commit 0ec8f64
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ find_package(Doxygen OPTIONAL_COMPONENTS dot mscgen dia)
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_API_DOXYGEN "Enable LMS API Doxygen documentation" ON "DOXYGEN_FOUND" OFF)
add_feature_info(LimeSuiteDocAPI ENABLE_API_DOXYGEN "LMS API Doxygen documentation")
add_feature_info(API_DOXYGEN ENABLE_API_DOXYGEN "LMS API Doxygen documentation")
if (ENABLE_API_DOXYGEN)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/doxygen/DoxyfileAPI.in ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile @ONLY)
add_custom_target(docAPI ALL
Expand Down
2 changes: 1 addition & 1 deletion Desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ endif()
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_DESKTOP "Enable LimeSuite launcher and icons" ON "ENABLE_GUI;LINUX" OFF)
add_feature_info(LimeSuiteDesktop ENABLE_DESKTOP "LimeSuite freedesktop integration")
add_feature_info(DESKTOP ENABLE_DESKTOP "LimeSuite freedesktop integration")
if (NOT ENABLE_DESKTOP)
return()
endif()
Expand Down
6 changes: 3 additions & 3 deletions SoapyLMS7/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ set_package_properties(SoapySDR PROPERTIES
########################################################################
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_SOAPY_LMS7 "Enable LMS7 SoapySDR bindings" ON "ENABLE_LIBRARY;SoapySDR_FOUND" OFF)
add_feature_info(SoapySDRLMS7 ENABLE_SOAPY_LMS7 "SoapySDR bindings for LMS7")
if (NOT ENABLE_SOAPY_LMS7)
cmake_dependent_option(ENABLE_SOAPYSDR "Enable LimeSuite SoapySDR bindings" ON "ENABLE_LIBRARY;SoapySDR_FOUND" OFF)
add_feature_info(SOAPYSDR ENABLE_SOAPYSDR "SoapySDR bindings for LimeSuite")
if (NOT ENABLE_SOAPYSDR)
return()
endif()

Expand Down
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ FILE(GLOB LIME_SUITE_PUBLIC_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CM
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_HEADERS "Enable install headers" ON "TRUE" OFF)
add_feature_info(LimeSuiteHeaders ENABLE_HEADERS "The lime suite headers")
add_feature_info(HEADERS ENABLE_HEADERS "The lime suite headers")
if (ENABLE_HEADERS)
install(
FILES ${LIME_SUITE_PUBLIC_HEADERS}
Expand Down Expand Up @@ -111,7 +111,7 @@ include(CMakeDependentOption)
add_subdirectory(vectorization)

option(ENABLE_LIBRARY "Enable build library" ON)
add_feature_info(LimeSuiteLibrary ENABLE_LIBRARY "The lime suite library")
add_feature_info(LIBRARY ENABLE_LIBRARY "The lime suite library")
if (ENABLE_LIBRARY)
add_library(${MAIN_LIBRARY_NAME} ${LIME_SUITE_SOURCES})
target_link_libraries(${MAIN_LIBRARY_NAME} PUBLIC ${LIME_SUITE_LIBRARIES} samplesConversion)
Expand Down Expand Up @@ -248,7 +248,7 @@ set(LMS7SUITE_GUI_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_GUI "Enable build GUI" ON "ENABLE_LIBRARY;wxWidgets_FOUND" OFF)
add_feature_info(${GUI_EXECUTABLE_NAME} ENABLE_GUI "GUI Application for LimeSuite")
add_feature_info(GUI ENABLE_GUI "GUI Application for LimeSuite")
if (ENABLE_GUI)

include_directories(lms7002_wxgui)
Expand Down
2 changes: 1 addition & 1 deletion src/boards/LimeSDR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(LIMESDR_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMESDR_USB "Enable LimeSDR support" ON "ENABLE_LIBRARY;ENABLE_USB_FX3" OFF)
add_feature_info(BoardLimeSDR ENABLE_LIMESDR_USB "LimeSDR board support")
add_feature_info(LIMESDR_USB ENABLE_LIMESDR_USB "LimeSDR USB board support")
if (NOT ENABLE_LIMESDR_USB)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/boards/LimeSDR_Mini/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set(LIMESDR_MINI_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMESDR_MINI "Enable LimeSDR Mini support" ON "ENABLE_LIBRARY;ENABLE_USB_FTDI" OFF)
add_feature_info(BoardLimeSDR_Mini ENABLE_LIMESDR_MINI "LimeSDR Mini board support")
add_feature_info(LIMESDR_MINI ENABLE_LIMESDR_MINI "LimeSDR Mini board support")
if (NOT ENABLE_LIMESDR_MINI)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/boards/LimeSDR_X3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set(LIMESDR_X3_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMESDR_X3 "Enable LimeSDR X3 board support" ON "ENABLE_LIBRARY;ENABLE_LITE_PCIE" OFF)
add_feature_info(ENABLE_LIMESDR_X3 ENABLE_LIMESDR_X3 "LimeSDR X3 board support")
add_feature_info(LIMESDR_X3 ENABLE_LIMESDR_X3 "LimeSDR X3 board support")
if (NOT ENABLE_LIMESDR_X3)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/boards/LimeSDR_XTRX/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set(LIMESDR_XTRX_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMESDR_XTRX "Enable LimeSDR XTRX support" ON "ENABLE_LIBRARY;ENABLE_LITE_PCIE" OFF)
add_feature_info(BoardLimeSDRXTRX ENABLE_LIMESDR_XTRX "LimeSDR XTRX board support")
add_feature_info(LIMESDR_XTRX ENABLE_LIMESDR_XTRX "LimeSDR XTRX board support")
if (NOT ENABLE_LIMESDR_XTRX)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/boards/MMX8/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(MM_X8_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LIMESDR_MMX8 "Enable LimeMM-X8 board support" ON "ENABLE_LIBRARY;ENABLE_LITE_PCIE" OFF)
add_feature_info(ENABLE_LIMESDR_MMX8 ENABLE_LIMESDR_MMX8 "LimeSDR MM-X8 board support")
add_feature_info(LIMESDR_MMX8 ENABLE_LIMESDR_MMX8 "LimeSDR MM-X8 board support")
if (NOT ENABLE_LIMESDR_MMX8)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/cli/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_CLI "Enable command line programs" ON "ENABLE_LIBRARY" ON)
add_feature_info(ENABLE_CLI ENABLE_CLI "LimeSuite command line interface tools")
add_feature_info(CLI ENABLE_CLI "LimeSuite command line interface tools")
if (NOT ENABLE_CLI)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/comms/PCIe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set(COMMS_LITE_PCIE_SOURCES
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_LITE_PCIE "Enable Lite PCIe" ON "UNIX;ENABLE_LIBRARY" OFF)
add_feature_info(ConnectionLitePCIe ENABLE_LITE_PCIE "Lite PCIe Connection support")
add_feature_info(LITE_PCIE ENABLE_LITE_PCIE "PCIe support")
if (NOT ENABLE_LITE_PCIE)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include(FeatureSummary)
include(CMakeDependentOption)
cmake_dependent_option(ENABLE_EXAMPLES "Enable library example programs" ON "ENABLE_LIBRARY" ON)
add_feature_info(LimeSuiteExamples ENABLE_EXAMPLES "LimeSuite library API examples")
add_feature_info(EXAMPLES ENABLE_EXAMPLES "LimeSuite library API examples")
if (NOT ENABLE_EXAMPLES)
return()
endif()
Expand Down

0 comments on commit 0ec8f64

Please sign in to comment.