diff options
Diffstat (limited to 'gnuradio-core/src/tests/CMakeLists.txt')
-rw-r--r-- | gnuradio-core/src/tests/CMakeLists.txt | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/gnuradio-core/src/tests/CMakeLists.txt b/gnuradio-core/src/tests/CMakeLists.txt index 1096ab66e..6de259116 100644 --- a/gnuradio-core/src/tests/CMakeLists.txt +++ b/gnuradio-core/src/tests/CMakeLists.txt @@ -18,25 +18,25 @@ # Boston, MA 02110-1301, USA. ######################################################################## -INCLUDE(GrMiscUtils) #check n def +include(GrMiscUtils) #check n def GR_CHECK_HDR_N_DEF(sys/resource.h HAVE_SYS_RESOURCE_H) ######################################################################## # Setup the include and linker paths ######################################################################## -INCLUDE_DIRECTORIES(${GRUEL_INCLUDE_DIRS}) -INCLUDE_DIRECTORIES(${GNURADIO_CORE_INCLUDE_DIRS}) +include_directories(${GRUEL_INCLUDE_DIRS}) +include_directories(${GNURADIO_CORE_INCLUDE_DIRS}) -INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) -LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) +include_directories(${Boost_INCLUDE_DIRS}) +link_directories(${Boost_LIBRARY_DIRS}) -INCLUDE_DIRECTORIES(${CPPUNIT_INCLUDE_DIRS}) -LINK_DIRECTORIES(${CPPUNIT_LIBRARY_DIRS}) +include_directories(${CPPUNIT_INCLUDE_DIRS}) +link_directories(${CPPUNIT_LIBRARY_DIRS}) ######################################################################## # Build benchmarks and non-registered tests ######################################################################## -SET(tests_not_run #single source per test +set(tests_not_run #single source per test benchmark_dotprod_fff.cc benchmark_dotprod_fsf.cc benchmark_dotprod_ccf.cc @@ -52,18 +52,18 @@ SET(tests_not_run #single source per test test_vmcircbuf.cc ) -FOREACH(test_not_run_src ${tests_not_run}) - GET_FILENAME_COMPONENT(name ${test_not_run_src} NAME_WE) - ADD_EXECUTABLE(${name} ${test_not_run_src}) - TARGET_LINK_LIBRARIES(${name} test-gnuradio-core) -ENDFOREACH(test_not_run_src) +foreach(test_not_run_src ${tests_not_run}) + get_filename_component(name ${test_not_run_src} NAME_WE) + add_executable(${name} ${test_not_run_src}) + target_link_libraries(${name} test-gnuradio-core) +endforeach(test_not_run_src) ######################################################################## # Build the test-all test to end all tests # Set the test environment so the build libs will be found under MSVC. ######################################################################## -INCLUDE(GrTest) -SET(GR_TEST_TARGET_DEPS gruel gnuradio-core test-gnuradio-core) -ADD_EXECUTABLE(gr_core_test_all test_all.cc) -TARGET_LINK_LIBRARIES(gr_core_test_all test-gnuradio-core) +include(GrTest) +set(GR_TEST_TARGET_DEPS gruel gnuradio-core test-gnuradio-core) +add_executable(gr_core_test_all test_all.cc) +target_link_libraries(gr_core_test_all test-gnuradio-core) GR_ADD_TEST(gr-core-test-all gr_core_test_all) |