diff options
author | Josh Blum | 2012-08-14 00:17:57 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-26 16:03:50 -0700 |
commit | 6fc8cc01801080b57ef549dc4eb470630e9ce780 (patch) | |
tree | b81358bf1fe1f2f7d89ba7cbd1c70e35a5099fd6 /lib | |
parent | d9bdc5678c800722c6f83bb4ae35e79b9bca5631 (diff) | |
download | sandhi-6fc8cc01801080b57ef549dc4eb470630e9ce780.tar.gz sandhi-6fc8cc01801080b57ef549dc4eb470630e9ce780.tar.bz2 sandhi-6fc8cc01801080b57ef549dc4eb470630e9ce780.zip |
runtime: added compile hooks into core
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CMakeLists.txt | 37 | ||||
-rw-r--r-- | lib/element.cpp | 17 |
2 files changed, 54 insertions, 0 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 0000000..beb2a2d --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,37 @@ +######################################################################## +# This file included, use CMake directory variables +######################################################################## + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}) + +######################################################################## +# Append gnuradio-core library sources +######################################################################## +list(APPEND gnuradio_core_sources + ${CMAKE_CURRENT_SOURCE_DIR}/element.cpp +) + +######################################################################## +# Find TSBE and add to libs +######################################################################## +FIND_PATH( + TSBE_INCLUDE_DIRS + NAMES tsbe/config.hpp + PATHS /usr/local/include + /usr/include +) + +FIND_LIBRARY( + TSBE_LIBRARIES + NAMES tsbe_static + PATHS /usr/local/lib + /usr/lib + /usr/lib64 +) + +include_directories(${TSBE_INCLUDE_DIRS}) +link_directories(${TSBE_LIBRARY_DIRS}) + +list(APPEND gnuradio_core_libs + ${TSBE_LIBRARIES} +) diff --git a/lib/element.cpp b/lib/element.cpp new file mode 100644 index 0000000..705cbf2 --- /dev/null +++ b/lib/element.cpp @@ -0,0 +1,17 @@ +// +// Copyright 2012 Josh Blum +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program 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 Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with io_sig program. If not, see <http://www.gnu.org/licenses/>. + +#include <gnuradio/element.hpp> |