1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 12:10:34 +00:00
gnss-sdr/cmake/Modules/FindGNSSSIMULATOR.cmake
Carles Fernandez 299cb1a2ee
Remove usage of uninitialized variables in CMake scripts
Remove all warnings emitted by cmake --warn-uninitialized ..
2020-02-29 14:33:09 +01:00

37 lines
979 B
CMake

# Copyright (C) 2011-2020 (see AUTHORS file for a list of contributors)
#
# GNSS-SDR is a software-defined Global Navigation Satellite Systems receiver
#
# This file is part of GNSS-SDR.
#
# SPDX-License-Identifier: GPL-3.0-or-later
if(GNSSSIMULATOR_ROOT)
set(GNSSSIMULATOR_ROOT_USER_DEFINED ${GNSSSIMULATOR_ROOT})
else()
set(GNSSSIMULATOR_ROOT_USER_DEFINED /usr/local/bin)
endif()
if(DEFINED ENV{GNSSSIMULATOR_ROOT})
set(GNSSSIMULATOR_ROOT_USER_DEFINED
${GNSSSIMULATOR_ROOT_USER_DEFINED}
$ENV{GNSSSIMULATOR}
)
endif()
set(GNSSSIMULATOR_ROOT_USER_DEFINED
${GNSSSIMULATOR_ROOT_USER_DEFINED}
${CMAKE_INSTALL_PREFIX}
)
find_program(SW_GENERATOR_BIN gnss_sim
PATHS
${GNSSSIMULATOR_ROOT_USER_DEFINED}
/usr
/usr/local
/opt/local
PATH_SUFFIXES bin
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GNSSSIMULATOR DEFAULT_MSG SW_GENERATOR_BIN)
mark_as_advanced(SW_GENERATOR_BIN)