mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-12 02:10:34 +00:00
small fixes to cmake scripts
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@374 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
parent
b0cefd151f
commit
5b13435332
@ -119,8 +119,8 @@ if(INSTALL_GNURADIO)
|
||||
if(OperatingSystem MATCHES "Linux")
|
||||
message("Trying to install GNU Radio and all its dependencies.")
|
||||
message("This process can take a long time.")
|
||||
#set(GNURADIO_RELEASE "3.6.3")
|
||||
#set(UHD_RELEASE "003_005_000")
|
||||
#set(GNURADIO_RELEASE "3.7.0")
|
||||
#set(UHD_RELEASE "003_005_003")
|
||||
set(INSTALL_GNURADIO CACHE BOOL OFF FORCE)
|
||||
file(DOWNLOAD http://www.sbrac.org/files/build-gnuradio
|
||||
${CMAKE_CURRENT_BINARY_DIR}/download/build-gnuradio
|
||||
@ -146,15 +146,31 @@ find_package(GnuradioRuntime)
|
||||
find_package(GnuradioBlocks)
|
||||
find_package(UHD)
|
||||
find_package(GnuradioUHD)
|
||||
#find_library(GnuradioAnalog)
|
||||
#find_library(GnuradioAnalog) # Required at tests, added later
|
||||
find_package(GnuradioFilter)
|
||||
find_package(GnuradioFft)
|
||||
find_package(Volk)
|
||||
if(NOT GNURADIO_RUNTIME_FOUND)
|
||||
message(FATAL_ERROR "gnuradio-runtime 3.7 or later is required to build gnss-sdr")
|
||||
endif()
|
||||
|
||||
|
||||
if(NOT GNURADIO_BLOCKS_FOUND)
|
||||
message(FATAL_ERROR "gnuradio-blocks 3.7 or later is required to build gnss-sdr")
|
||||
endif()
|
||||
if(NOT UHD_FOUND)
|
||||
message(FATAL_ERROR "UHD is required to build gnss-sdr")
|
||||
endif()
|
||||
if(NOT GNURADIO_UHD_FOUND)
|
||||
message(FATAL_ERROR "gnuradio-uhd 3.7 or later is required to build gnss-sdr")
|
||||
endif()
|
||||
if(NOT GNURADIO_FILTER_FOUND)
|
||||
message(FATAL_ERROR "gnuradio-filter 3.7 or later is required to build gnss-sdr")
|
||||
endif()
|
||||
if(NOT GNURADIO_FFT_FOUND)
|
||||
message(FATAL_ERROR "gnuradio-fft 3.7 or later is required to build gnss-sdr")
|
||||
endif()
|
||||
if(NOT VOLK_FOUND)
|
||||
message(FATAL_ERROR "VOLK is required to build gnss-sdr")
|
||||
endif()
|
||||
|
||||
|
||||
################################################################################
|
||||
@ -191,6 +207,7 @@ if (NOT GFlags_FOUND)
|
||||
set(GFlags_LIBS
|
||||
${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE}/.libs/${CMAKE_FIND_LIBRARY_PREFIXES}gflags.a
|
||||
)
|
||||
set(GFlags_ROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE})
|
||||
file(GLOB GFlags_SHARED_LIBS "${CMAKE_CURRENT_BINARY_DIR}/gflags-${gflags_RELEASE}/.libs/${CMAKE_FIND_LIBRARY_PREFIXES}gflags${CMAKE_SHARED_LIBRARY_SUFFIX}*")
|
||||
set(GFlags_LIBRARY gflags-${gflags_RELEASE})
|
||||
set(gflags gflags-${gflags_RELEASE})
|
||||
|
@ -26,6 +26,7 @@ include_directories(
|
||||
${CMAKE_SOURCE_DIR}/src/algorithms/observables/gnuradio_blocks
|
||||
${CMAKE_SOURCE_DIR}/src/algorithms/PVT/libs
|
||||
${GLOG_INCLUDE_DIRS}
|
||||
${GFlags_INCLUDE_DIRS}
|
||||
${GNURADIO_RUNTIME_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
# along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
|
||||
set(GTEST_DIR_LOCAL $ENV{GTEST_DIR})
|
||||
|
||||
if(NOT GTEST_DIR_LOCAL)
|
||||
@ -49,15 +48,14 @@ if(NOT GTEST_DIR_LOCAL)
|
||||
${binary_dir}/${CMAKE_FIND_LIBRARY_PREFIXES}gtest_main.a
|
||||
)
|
||||
set(GTEST_LIB_DIR "${CMAKE_CURRENT_BINARY_DIR}/../../gtest-${gtest_RELEASE}")
|
||||
endif(NOT GTEST_DIR_LOCAL)
|
||||
|
||||
if(GTEST_DIR_LOCAL)
|
||||
else(NOT GTEST_DIR_LOCAL)
|
||||
# If the variable GTEST_DIR is defined, we use the existing Googletest
|
||||
set(GTEST_DIR $ENV{GTEST_DIR})
|
||||
set(GTEST_INCLUDE_DIRECTORIES ${GTEST_DIR}/include ${GTEST_DIR} ${GTEST_DIR}/src)
|
||||
add_library(gtest ${GTEST_DIR}/src/gtest-all.cc ${GTEST_DIR}/src/gtest_main.cc)
|
||||
set(GTEST_LIBRARIES gtest)
|
||||
endif(GTEST_DIR_LOCAL)
|
||||
endif(NOT GTEST_DIR_LOCAL)
|
||||
|
||||
|
||||
#find_library(GnuradioAnalog)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user