kopia lustrzana https://github.com/proto17/dji_droneid
45 wiersze
1.5 KiB
CMake
45 wiersze
1.5 KiB
CMake
# Copyright 2011 Free Software Foundation, Inc.
|
|
#
|
|
# This file was generated by gr_modtool, a tool from the GNU Radio framework
|
|
# This file is a part of gr-droneid
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
|
|
########################################################################
|
|
# Include python install macros
|
|
########################################################################
|
|
include(GrPython)
|
|
if(NOT PYTHONINTERP_FOUND)
|
|
return()
|
|
endif()
|
|
|
|
add_subdirectory(bindings)
|
|
|
|
########################################################################
|
|
# Install python sources
|
|
########################################################################
|
|
GR_PYTHON_INSTALL(
|
|
FILES
|
|
__init__.py
|
|
DESTINATION ${GR_PYTHON_DIR}/gnuradio/droneid
|
|
)
|
|
|
|
########################################################################
|
|
# Handle the unit tests
|
|
########################################################################
|
|
include(GrTest)
|
|
|
|
set(GR_TEST_TARGET_DEPS gnuradio-droneid)
|
|
|
|
# Create a package directory that tests can import. It includes everything
|
|
# from `python/`.
|
|
add_custom_target(
|
|
copy_module_for_tests ALL
|
|
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}
|
|
${PROJECT_BINARY_DIR}/test_modules/gnuradio/droneid/
|
|
)
|
|
GR_ADD_TEST(qa_demodulation ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_demodulation.py)
|
|
GR_ADD_TEST(qa_extractor ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_extractor.py)
|
|
GR_ADD_TEST(qa_time_sync ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/qa_time_sync.py)
|