summaryrefslogtreecommitdiff
path: root/gr-comedi
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-04-05 12:32:45 -0400
committerTom Rondeau <trondeau@vt.edu>2013-04-05 12:32:45 -0400
commita06fbf44f6febdf04d606a7c8bec0f8e2eef36c6 (patch)
treeb7d63fc9da7dd83916a2b95fcfe309fead451971 /gr-comedi
parent318660963ef29a7afa6372f6d636d16a7139ed3e (diff)
build: uniform handling of controlport vars in swig.
Diffstat (limited to 'gr-comedi')
-rw-r--r--gr-comedi/swig/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/gr-comedi/swig/CMakeLists.txt b/gr-comedi/swig/CMakeLists.txt
index a783fe4af8..42e6286709 100644
--- a/gr-comedi/swig/CMakeLists.txt
+++ b/gr-comedi/swig/CMakeLists.txt
@@ -29,6 +29,11 @@ set(GR_SWIG_INCLUDE_DIRS
${Boost_INCLUDE_DIRS}
)
+if(ENABLE_GR_CTRLPORT)
+ list(APPEND GR_SWIG_FLAGS "-DGR_CTRLPORT")
+ list(APPEND GR_SWIG_INCLUDE_DIRS ${ICE_INCLUDE_DIR})
+endif(ENABLE_GR_CTRLPORT)
+
# Setup swig docs to depend on includes and pull in from build directory
set(GR_SWIG_TARGET_DEPS comedi_generated_includes)
set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/comedi_swig_doc.i)