diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-27 19:36:33 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-27 19:36:33 -0700 |
commit | 16351339eb6962288844cefefbdb3f6eece8aca1 (patch) | |
tree | c60b4f974dc59591dbec806a880c7e140cd6a49f /host/examples/CMakeLists.txt | |
parent | 0208b28e58e3719dc4dfb8df73fe5ae49e4a6306 (diff) | |
parent | d7c7351bb66cb4c455e77f83edd581d6afbcef9c (diff) | |
download | uhd-16351339eb6962288844cefefbdb3f6eece8aca1.tar.gz uhd-16351339eb6962288844cefefbdb3f6eece8aca1.tar.bz2 uhd-16351339eb6962288844cefefbdb3f6eece8aca1.zip |
Merge branch 'next' into usrp_e_next
Conflicts:
host/examples/CMakeLists.txt
Diffstat (limited to 'host/examples/CMakeLists.txt')
-rw-r--r-- | host/examples/CMakeLists.txt | 57 |
1 files changed, 19 insertions, 38 deletions
diff --git a/host/examples/CMakeLists.txt b/host/examples/CMakeLists.txt index 3203cffc0..ce2ca9640 100644 --- a/host/examples/CMakeLists.txt +++ b/host/examples/CMakeLists.txt @@ -16,46 +16,27 @@ # ######################################################################## -ADD_EXECUTABLE(benchmark_rx_rate benchmark_rx_rate.cpp) -TARGET_LINK_LIBRARIES(benchmark_rx_rate uhd) - -ADD_EXECUTABLE(rx_timed_samples rx_timed_samples.cpp) -TARGET_LINK_LIBRARIES(rx_timed_samples uhd) - -ADD_EXECUTABLE(rx_to_file rx_to_file.cpp) -TARGET_LINK_LIBRARIES(rx_to_file uhd) - -ADD_EXECUTABLE(rx_to_udp rx_to_udp.cpp) -TARGET_LINK_LIBRARIES(rx_to_udp uhd) - -ADD_EXECUTABLE(test_async_messages test_async_messages.cpp) -TARGET_LINK_LIBRARIES(test_async_messages uhd) - -ADD_EXECUTABLE(test_pps_input test_pps_input.cpp) -TARGET_LINK_LIBRARIES(test_pps_input uhd) - -ADD_EXECUTABLE(tx_timed_samples tx_timed_samples.cpp) -TARGET_LINK_LIBRARIES(tx_timed_samples uhd) - -ADD_EXECUTABLE(tx_from_file tx_from_file.cpp) -TARGET_LINK_LIBRARIES(tx_from_file uhd) - -ADD_EXECUTABLE(tx_waveforms tx_waveforms.cpp) -TARGET_LINK_LIBRARIES(tx_waveforms uhd) - -INSTALL(TARGETS - benchmark_rx_rate - rx_timed_samples - test_async_messages - test_pps_input - tx_timed_samples - tx_from_file - rx_to_file - rx_to_udp - tx_waveforms - RUNTIME DESTINATION ${PKG_DATA_DIR}/examples +# example applications +######################################################################## +SET(example_sources + benchmark_rx_rate.cpp + rx_samples_to_file.cpp + rx_samples_to_udp.cpp + rx_timed_samples.cpp + test_async_messages.cpp + test_pps_input.cpp + tx_timed_samples.cpp + tx_waveforms.cpp ) +#for each source: build an executable and install +FOREACH(example_source ${example_sources}) + GET_FILENAME_COMPONENT(example_name ${example_source} NAME_WE) + ADD_EXECUTABLE(${example_name} ${example_source}) + TARGET_LINK_LIBRARIES(${example_name} uhd) + INSTALL(TARGETS ${example_name} RUNTIME DESTINATION ${PKG_DATA_DIR}/examples) +ENDFOREACH(example_source) + ######################################################################## # ASCII Art DFT - requires curses, so this part is optional ######################################################################## |