summaryrefslogtreecommitdiff
path: root/gruel/src/swig/CMakeLists.txt
diff options
context:
space:
mode:
authorJohnathan Corgan2012-07-03 14:21:05 -0700
committerJohnathan Corgan2012-07-03 14:21:05 -0700
commit76258270f53da9a7b6bdeed0b38dde735956012e (patch)
treefa9f6f1e69d07d5aacdf69f3cd74a0ff5f288264 /gruel/src/swig/CMakeLists.txt
parent744ffd50ac5a73ce3619ae11ef9cf04c0886d74a (diff)
downloadgnuradio-76258270f53da9a7b6bdeed0b38dde735956012e.tar.gz
gnuradio-76258270f53da9a7b6bdeed0b38dde735956012e.tar.bz2
gnuradio-76258270f53da9a7b6bdeed0b38dde735956012e.zip
swig: added additional swig dependencies gruel/core
pmt swig gen depends upon the generated header core depends upon pmt swig custom target Conflicts: gruel/src/swig/CMakeLists.txt
Diffstat (limited to 'gruel/src/swig/CMakeLists.txt')
-rw-r--r--gruel/src/swig/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/gruel/src/swig/CMakeLists.txt b/gruel/src/swig/CMakeLists.txt
index f9d1758ec..968622587 100644
--- a/gruel/src/swig/CMakeLists.txt
+++ b/gruel/src/swig/CMakeLists.txt
@@ -23,7 +23,8 @@
include(GrPython)
include(GrSwig)
-set(GR_SWIG_INCLUDE_DIRS ${GRUEL_INCLUDE_DIRS})
+set(GR_SWIG_TARGET_DEPS pmt_generated)
+set(GR_SWIG_INCLUDE_DIRS ${GRUEL_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
set(GR_SWIG_LIBRARIES gruel)
set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/pmt_swig_doc.i)
@@ -43,3 +44,5 @@ install(
DESTINATION ${GR_INCLUDE_DIR}/gruel/swig
COMPONENT "gruel_swig"
)
+
+add_custom_target(pmt_swig DEPENDS ${SWIG_MODULE_pmt_swig_REAL_NAME})