Skip to content

Commit

Permalink
cmake: print all packages states
Browse files Browse the repository at this point in the history
  • Loading branch information
rjonaitis committed Feb 9, 2024
1 parent 9ded814 commit 21b1a50
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,19 @@ feature_summary(WHAT PACKAGES_FOUND
DESCRIPTION "Packages found:"
)

message(STATUS "######################################################")
feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND
DESCRIPTION "Missing required packages:"
)

message(STATUS "######################################################")
feature_summary(WHAT RECOMMENDED_PACKAGES_NOT_FOUND
DESCRIPTION "Recommended packages not found:"
DESCRIPTION "Missing recommended packages:"
)

message(STATUS "######################################################")
feature_summary(WHAT OPTIONAL_PACKAGES_NOT_FOUND
DESCRIPTION "Missing optional packages:"
)

message(STATUS "######################################################")
Expand Down
4 changes: 4 additions & 0 deletions SoapyLMS7/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
########################################################################

find_package(SoapySDR CONFIG)
set_package_properties(SoapySDR PROPERTIES
TYPE OPTIONAL
PURPOSE "Adds LimeSuite bindings for SoapySDR"
)

########################################################################
## Feature registration
Expand Down
4 changes: 3 additions & 1 deletion src/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ endif()

if (UNIX)
find_package(Gnuplot)
set_package_properties(Gnuplot PROPERTIES
TYPE OPTIONAL
)
if (GNUPLOT_FOUND)
add_definitions(-DUSE_GNU_PLOT)
message(STATUS "GNUPlot Found")
endif()
endif()

Expand Down

0 comments on commit 21b1a50

Please sign in to comment.