summaryrefslogtreecommitdiff
path: root/gr-analog/lib/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'gr-analog/lib/CMakeLists.txt')
-rw-r--r--gr-analog/lib/CMakeLists.txt27
1 files changed, 10 insertions, 17 deletions
diff --git a/gr-analog/lib/CMakeLists.txt b/gr-analog/lib/CMakeLists.txt
index a75d70337..cc4864d6d 100644
--- a/gr-analog/lib/CMakeLists.txt
+++ b/gr-analog/lib/CMakeLists.txt
@@ -132,25 +132,18 @@ endif(ENABLE_STATIC_LIBS)
if(ENABLE_TESTING)
include(GrTest)
- include_directories(${CPPUNIT_INCLUDE_DIRS})
- link_directories(${CPPUNIT_LIBRARY_DIRS})
+ include_directories(
+ ${GR_ANALOG_INCLUDE_DIRS}
+ ${GNURADIO_RUNTIME_INCLUDE_DIRS}
+ )
list(APPEND test_gr_analog_sources
- ${CMAKE_CURRENT_SOURCE_DIR}/test_gr_analog.cc
- ${CMAKE_CURRENT_SOURCE_DIR}/qa_analog.cc
- )
-
- add_executable(test-gr-analog ${test_gr_analog_sources})
-
- target_link_libraries(
- test-gr-analog
- gnuradio-runtime
- gnuradio-analog
- ${Boost_LIBRARIES}
- ${CPPUNIT_LIBRARIES}
)
+ list(APPEND GR_TEST_TARGET_DEPS gnuradio-analog)
- list(APPEND GR_TEST_TARGET_DEPS gnuradio-analog gnuradio-filter gnuradio-fft)
-
- GR_ADD_TEST(test_gr_analog test-gr-analog)
+ foreach(qa_file ${test_gr_analog_sources})
+ GR_ADD_CPP_TEST("analog_${qa_file}"
+ ${CMAKE_CURRENT_SOURCE_DIR}/${qa_file}
+ )
+ endforeach(qa_file)
endif(ENABLE_TESTING)