diff options
Diffstat (limited to 'gr-utils/python/modtool/gr-newmod/lib/CMakeLists.txt')
-rw-r--r-- | gr-utils/python/modtool/gr-newmod/lib/CMakeLists.txt | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/gr-utils/python/modtool/gr-newmod/lib/CMakeLists.txt b/gr-utils/python/modtool/gr-newmod/lib/CMakeLists.txt index 64b7c1d4ab..2460b930f6 100644 --- a/gr-utils/python/modtool/gr-newmod/lib/CMakeLists.txt +++ b/gr-utils/python/modtool/gr-newmod/lib/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2011,2012,2016 Free Software Foundation, Inc. +# Copyright 2011,2012,2016,2018 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-howto @@ -31,8 +31,8 @@ list(APPEND howto_sources set(howto_sources "${howto_sources}" PARENT_SCOPE) if(NOT howto_sources) - MESSAGE(STATUS "No C++ sources... skipping lib/") - return() + MESSAGE(STATUS "No C++ sources... skipping lib/") + return() endif(NOT howto_sources) add_library(gnuradio-howto SHARED ${howto_sources}) @@ -52,31 +52,32 @@ include(GrMiscUtils) GR_LIBRARY_FOO(gnuradio-howto) ######################################################################## +# Print summary +######################################################################## +message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}") +message(STATUS "Building for version: ${VERSION} / ${LIBVER}") + +######################################################################## # Build and register unit test ######################################################################## include(GrTest) -include_directories(${CPPUNIT_INCLUDE_DIRS}) - +# 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_howto_sources - ${CMAKE_CURRENT_SOURCE_DIR}/test_howto.cc - ${CMAKE_CURRENT_SOURCE_DIR}/qa_howto.cc ) +# Anything we need to link to for the unit tests go here +list(APPEND GR_TEST_TARGET_DEPS gnuradio-howto) -add_executable(test-howto ${test_howto_sources}) +if(NOT test_howto_sources) + MESSAGE(STATUS "No C++ unit tests... skipping") + return() +endif(NOT test_howto_sources) -target_link_libraries( - test-howto - ${GNURADIO_RUNTIME_LIBRARIES} - ${Boost_LIBRARIES} - ${CPPUNIT_LIBRARIES} - gnuradio-howto -) - -GR_ADD_TEST(test_howto test-howto) +foreach(qa_file ${test_howto_sources}) + GR_ADD_CPP_TEST("howto_${qa_file}" + ${CMAKE_CURRENT_SOURCE_DIR}/${qa_file} + ) +endforeach(qa_file) -######################################################################## -# Print summary -######################################################################## -message(STATUS "Using install prefix: ${CMAKE_INSTALL_PREFIX}") -message(STATUS "Building for version: ${VERSION} / ${LIBVER}") |