summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block-cmake/swig/howto_swig.i
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-08-04 10:33:49 -0700
committerJosh Blum <josh@joshknows.com>2011-08-04 10:33:49 -0700
commit626018eb037808cdc32b5eb1907ae9d5f80d3e55 (patch)
tree54920571f247deda97519605e8326bcede647215 /gr-howto-write-a-block-cmake/swig/howto_swig.i
parenta498339d2950955f258ae282b61f60e4e6e647d3 (diff)
cmake: re-imagining of how to write a block w/ cmake and boost unit test
Diffstat (limited to 'gr-howto-write-a-block-cmake/swig/howto_swig.i')
-rw-r--r--gr-howto-write-a-block-cmake/swig/howto_swig.i21
1 files changed, 21 insertions, 0 deletions
diff --git a/gr-howto-write-a-block-cmake/swig/howto_swig.i b/gr-howto-write-a-block-cmake/swig/howto_swig.i
new file mode 100644
index 0000000000..d0bbcdc115
--- /dev/null
+++ b/gr-howto-write-a-block-cmake/swig/howto_swig.i
@@ -0,0 +1,21 @@
+/* -*- c++ -*- */
+
+%include "gnuradio.i" // the common stuff
+
+%{
+#include "howto_square_ff.h"
+#include "howto_square2_ff.h"
+%}
+
+%include "howto_square_ff.i"
+%include "howto_square2_ff.i"
+
+#if SWIGGUILE
+%scheme %{
+(load-extension-global "libguile-gnuradio-howto_swig" "scm_init_gnuradio_howto_swig_module")
+%}
+
+%goops %{
+(use-modules (gnuradio gnuradio_core_runtime))
+%}
+#endif