From 704afafe874735a8b260870efb1ed11c2c85eff4 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Mon, 12 Mar 2012 10:11:01 -0700 Subject: fcd: complete cmake build --- gr-fcd/examples/CMakeLists.txt | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 gr-fcd/examples/CMakeLists.txt (limited to 'gr-fcd/examples/CMakeLists.txt') diff --git a/gr-fcd/examples/CMakeLists.txt b/gr-fcd/examples/CMakeLists.txt new file mode 100644 index 000000000..9913a30f3 --- /dev/null +++ b/gr-fcd/examples/CMakeLists.txt @@ -0,0 +1,41 @@ +# Copyright 2012 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. + +include_directories(${GR_FCD_INCLUDE_DIRS}) +include_directories(${GNURADIO_CORE_INCLUDE_DIRS}) +include_directories(${GR_AUDIO_INCLUDE_DIRS}) + +add_executable(fcd_nfm_rx fcd_nfm_rx.cc) +target_link_libraries(fcd_nfm_rx gnuradio-fcd) + +INSTALL(PROGRAMS + ${CMAKE_CURRENT_BINARY_DIR}/fcd_nfm_rx + DESTINATION ${GR_PKG_DATA_DIR}/examples/fcd + COMPONENT "fcd_examples" +) + +if(ENABLE_PYTHON) + INSTALL(FILES + fcd_apt_rx.grc + fcd_fft_wx.grc + fcd_nfm_rx.grc + DESTINATION ${GR_PKG_DATA_DIR}/examples/fcd + COMPONENT "fcd_examples" + ) +endif() -- cgit From 81fba6490c6471e1db3bcc85d16ff2242f68fb43 Mon Sep 17 00:00:00 2001 From: Johnathan Corgan Date: Thu, 22 Mar 2012 13:35:20 -0700 Subject: Implement conditionalized build for WIN32 --- gr-fcd/examples/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gr-fcd/examples/CMakeLists.txt') diff --git a/gr-fcd/examples/CMakeLists.txt b/gr-fcd/examples/CMakeLists.txt index 9913a30f3..477a6311b 100644 --- a/gr-fcd/examples/CMakeLists.txt +++ b/gr-fcd/examples/CMakeLists.txt @@ -24,8 +24,8 @@ include_directories(${GR_AUDIO_INCLUDE_DIRS}) add_executable(fcd_nfm_rx fcd_nfm_rx.cc) target_link_libraries(fcd_nfm_rx gnuradio-fcd) -INSTALL(PROGRAMS - ${CMAKE_CURRENT_BINARY_DIR}/fcd_nfm_rx +INSTALL(TARGETS + fcd_nfm_rx DESTINATION ${GR_PKG_DATA_DIR}/examples/fcd COMPONENT "fcd_examples" ) -- cgit