# Copyright (C) 2012-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 . # set(FRONT_END_CAL_SOURCES front_end_cal.cc) set(FRONT_END_CAL_HEADERS front_end_cal.h) add_library(front_end_cal_lib ${FRONT_END_CAL_SOURCES} ${FRONT_END_CAL_HEADERS}) source_group(Headers FILES ${FRONT_END_CAL_HEADERS}) target_link_libraries(front_end_cal_lib PUBLIC Armadillo::armadillo ${MAC_LIBRARIES} ${THREAD_LIBRARIES} acq_adapters Volkgnsssdr::volkgnsssdr ${ORC_LIBRARIES} ${GNSS_SDR_OPTIONAL_LIBS} rx_core_lib gnss_sdr_flags gnss_rx channel_fsm gnss_sp_libs PRIVATE Glog::glog Gnuradio::blocks Gnuradio::runtime Boost::boost Boost::serialization Boost::thread ) add_executable(front-end-cal ${CMAKE_CURRENT_SOURCE_DIR}/main.cc) add_custom_command(TARGET front-end-cal POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy $ ${CMAKE_SOURCE_DIR}/install/$) target_link_libraries(front-end-cal PUBLIC ${MAC_LIBRARIES} Volkgnsssdr::volkgnsssdr ${ORC_LIBRARIES} ${GNSS_SDR_OPTIONAL_LIBS} rx_core_lib gnss_rx front_end_cal_lib gnss_sdr_flags PRIVATE Glog::glog Armadillo::armadillo ) target_compile_definitions(front-end-cal PUBLIC -DGNSS_SDR_VERSION="${VERSION}" PUBLIC -DGNSSSDR_INSTALL_DIR="${CMAKE_INSTALL_PREFIX}" ) install(TARGETS front-end-cal RUNTIME DESTINATION bin COMPONENT "front-end-cal" ) find_program(GZIP gzip /bin /usr/bin /usr/local/bin /opt/local/bin /sbin ) if(NOT GZIP_NOTFOUND) execute_process(COMMAND gzip -9 -c ${CMAKE_SOURCE_DIR}/docs/manpage/front-end-cal-manpage WORKING_DIRECTORY ${CMAKE_BINARY_DIR} OUTPUT_FILE "${CMAKE_BINARY_DIR}/front-end-cal.1.gz") install(FILES ${CMAKE_BINARY_DIR}/front-end-cal.1.gz DESTINATION share/man/man1) endif()