2018-04-29 10:02:40 +00:00
|
|
|
# Copyright (C) 2011-2018 (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
|
2018-05-13 20:49:11 +00:00
|
|
|
# along with GNSS-SDR. If not, see <https://www.gnu.org/licenses/>.
|
2018-04-29 10:02:40 +00:00
|
|
|
|
2018-11-21 07:28:50 +00:00
|
|
|
include(FindPkgConfig)
|
|
|
|
pkg_check_modules(PC_TELEORBIT teleorbit)
|
2015-03-03 17:07:26 +00:00
|
|
|
|
2018-12-01 18:09:44 +00:00
|
|
|
find_path(TELEORBIT_INCLUDE_DIRS
|
2015-03-03 17:07:26 +00:00
|
|
|
NAMES teleorbit/api.h
|
|
|
|
HINTS $ENV{TELEORBIT_DIR}/include
|
2018-12-01 18:09:44 +00:00
|
|
|
${PC_TELEORBIT_INCLUDEDIR}
|
2015-03-03 17:07:26 +00:00
|
|
|
PATHS ${CMAKE_INSTALL_PREFIX}/include
|
|
|
|
/usr/local/include
|
|
|
|
/usr/include
|
2018-12-01 18:09:44 +00:00
|
|
|
${TELEORBIT_ROOT}/include
|
|
|
|
$ENV{TELEORBIT_ROOT}/include
|
2015-03-03 17:07:26 +00:00
|
|
|
)
|
|
|
|
|
2018-12-01 18:09:44 +00:00
|
|
|
find_library(TELEORBIT_LIBRARIES
|
2015-03-03 17:07:26 +00:00
|
|
|
NAMES gnuradio-teleorbit
|
|
|
|
HINTS $ENV{TELEORBIT_DIR}/lib
|
2018-12-01 18:09:44 +00:00
|
|
|
${PC_TELEORBIT_LIBDIR}
|
2015-03-03 17:07:26 +00:00
|
|
|
PATHS ${CMAKE_INSTALL_PREFIX}/lib
|
|
|
|
${CMAKE_INSTALL_PREFIX}/lib64
|
|
|
|
/usr/local/lib
|
|
|
|
/usr/local/lib64
|
|
|
|
/usr/lib
|
|
|
|
/usr/lib64
|
2018-12-01 18:09:44 +00:00
|
|
|
${TELEORBIT_ROOT}/lib
|
|
|
|
$ENV{TELEORBIT_ROOT}/lib
|
|
|
|
${TELEORBIT_ROOT}/lib64
|
|
|
|
$ENV{TELEORBIT_ROOT}/lib64
|
2015-03-03 17:07:26 +00:00
|
|
|
)
|
|
|
|
|
2018-11-21 07:28:50 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package_handle_standard_args(TELEORBIT DEFAULT_MSG TELEORBIT_LIBRARIES TELEORBIT_INCLUDE_DIRS)
|
|
|
|
mark_as_advanced(TELEORBIT_LIBRARIES TELEORBIT_INCLUDE_DIRS)
|