kopia lustrzana https://github.com/cariboulabs/cariboulite
74 wiersze
2.0 KiB
CMake
74 wiersze
2.0 KiB
CMake
# Copyright 2011-2021 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-cariboulite
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
#
|
|
|
|
########################################################################
|
|
# Setup library
|
|
########################################################################
|
|
add_library(gnuradio-cariboulite
|
|
block_impl.cc
|
|
source_impl.cc
|
|
sink_impl.cc
|
|
)
|
|
|
|
target_compile_features(gnuradio-soapy PRIVATE ${GR_CXX_VERSION_FEATURE})
|
|
|
|
target_link_libraries(gnuradio-cariboulite PUBLIC
|
|
gnuradio-runtime
|
|
${CARIBOULITR_LIBRARIES}
|
|
)
|
|
|
|
if(ENABLE_COMMON_PCH)
|
|
target_link_libraries(gnuradio-cariboulite PRIVATE common-precompiled-headers)
|
|
endif()
|
|
|
|
target_include_directories(gnuradio-cariboulite PUBLIC
|
|
$<INSTALL_INTERFACE:include>
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
)
|
|
|
|
#Add Windows DLL resource file if using MSVC
|
|
if (MSVC)
|
|
include(${CMAKE_SOURCE_DIR}/cmake/Modules/GrVersion.cmake)
|
|
|
|
configure_file(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-cariboulite.rc.in
|
|
${CMAKE_CURRENT_BINARY_DIR}/gnuradio-cariboulite.rc
|
|
@ONLY)
|
|
|
|
target_sources(gnuradio-cariboulite PRIVATE
|
|
${CMAKE_CURRENT_BINARY_DIR}/gnuradio-cariboulite.rc
|
|
)
|
|
endif (MSVC)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
GR_LIBRARY_FOO(gnuradio-cariboulite CaribouLite)
|
|
endif()
|
|
|
|
if(ENABLE_TESTING)
|
|
include(GrTest)
|
|
|
|
# If your unit tests require special include paths, add them here
|
|
#include_directories()
|
|
# List all files that contain Boost.UTF unit tests here
|
|
list(APPEND test_cariboulite_sources)
|
|
|
|
# Anything we need to link to for the unit tests go here
|
|
list(APPEND GR_TEST_TARGET_DEPS gnuradio-cariboulite)
|
|
|
|
if(NOT test_cariboulite_sources)
|
|
MESSAGE(STATUS "No C++ unit tests... skipping")
|
|
return()
|
|
endif(NOT test_cariboulite_sources)
|
|
|
|
foreach(qa_file ${test_cariboulite_sources})
|
|
GR_ADD_CPP_TEST("cariboulite_${qa_file}"
|
|
${CMAKE_CURRENT_SOURCE_DIR}/${qa_file}
|
|
)
|
|
endforeach(qa_file)
|
|
endif()
|