mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-09 17:21:51 +00:00
Generate CMake summary report
This commit is contained in:
@@ -43,6 +43,9 @@ macro(LIST_CONTAINS var value)
|
||||
endforeach()
|
||||
endmacro()
|
||||
|
||||
# Trick for feature_summary
|
||||
set(GNURADIO_FOUND TRUE)
|
||||
|
||||
function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
|
||||
list_contains(REQUIRED_MODULE ${EXTVAR} ${GR_REQUIRED_COMPONENTS})
|
||||
if(NOT REQUIRED_MODULE)
|
||||
@@ -140,6 +143,7 @@ function(GR_MODULE EXTVAR PCNAME INCFILE LIBFILE)
|
||||
# generate an error if the module is missing
|
||||
if(NOT GNURADIO_${EXTVAR}_FOUND)
|
||||
message(STATUS "Required GNU Radio Component: ${EXTVAR} missing!")
|
||||
set(GNURADIO_FOUND FALSE) # Trick for feature_summary
|
||||
endif()
|
||||
|
||||
mark_as_advanced(GNURADIO_${EXTVAR}_LIBRARIES GNURADIO_${EXTVAR}_INCLUDE_DIRS)
|
||||
@@ -200,3 +204,6 @@ if(NOT PC_GNURADIO_RUNTIME_VERSION)
|
||||
set(PC_GNURADIO_RUNTIME_VERSION "3.8.0+")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Trick for feature_summary
|
||||
set(GNURADIO_FOUND TRUE)
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
# Copyright (C) 2011-2019 (see AUTHORS file for a list of contributors)
|
||||
#
|
||||
# This file is part of GNSS-SDR.
|
||||
#
|
||||
# GNSS-SDR is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# GNSS-SDR is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
# - Try to find Googletest source code
|
||||
#
|
||||
# The following environment variable is optionally searched for:
|
||||
# GTEST_DIR: Base directory where Googletest source code is found.
|
||||
#
|
||||
# The following are set after configuration is done:
|
||||
# GOOGLETEST_FOUND
|
||||
# LIBGTEST_DEV_DIR
|
||||
# GTEST_INCLUDE_DIRS
|
||||
|
||||
|
||||
find_path(LIBGTEST_DEV_DIR
|
||||
NAMES src/gtest-all.cc
|
||||
PATHS
|
||||
${GTEST_DIR}
|
||||
${GTEST_DIR}/googletest
|
||||
/usr/src/googletest/googletest
|
||||
/usr/src/gtest
|
||||
/usr/include/gtest
|
||||
/opt/local/src/gtest-1.7.0
|
||||
)
|
||||
|
||||
find_path(GTEST_INCLUDE_DIRS
|
||||
NAMES gtest/gtest.h
|
||||
PATHS
|
||||
${GTEST_DIR}/googletest/include
|
||||
/usr/include
|
||||
/opt/local/src/gtest-1.7.0/include
|
||||
)
|
||||
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(GOOGLETEST DEFAULT_MSG LIBGTEST_DEV_DIR GTEST_INCLUDE_DIRS)
|
||||
mark_as_advanced(LIBGTEST_DEV_DIR GTEST_INCLUDE_DIRS)
|
||||
Reference in New Issue
Block a user