Statistics
| Branch: | Tag: | Revision:

root / gruel / src / swig / CMakeLists.txt @ f536b394

History | View | Annotate | Download (1.5 kB)

1
# Copyright 2011 Free Software Foundation, Inc.
2
#
3
# This file is part of GNU Radio
4
#
5
# GNU Radio is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 3, or (at your option)
8
# any later version.
9
#
10
# GNU Radio is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
# GNU General Public License for more details.
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with GNU Radio; see the file COPYING.  If not, write to
17
# the Free Software Foundation, Inc., 51 Franklin Street,
18
# Boston, MA 02110-1301, USA.
19
20
########################################################################
21
# Setup swig generation
22
########################################################################
23
include(GrPython)
24
include(GrSwig)
25
26
set(GR_SWIG_INCLUDE_DIRS ${GRUEL_INCLUDE_DIRS})
27
set(GR_SWIG_LIBRARIES gruel)
28
29
set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/pmt_swig_doc.i)
30
set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include/gruel ${CMAKE_CURRENT_BINARY_DIR}/../include/gruel)
31
32
GR_SWIG_MAKE(pmt_swig pmt_swig.i)
33
34
GR_SWIG_INSTALL(
35
    TARGETS pmt_swig
36
    DESTINATION ${GR_PYTHON_DIR}/gruel/pmt
37
    COMPONENT "gruel_python"
38
)
39
40
install(
41
    FILES gr_intrusive_ptr.i pmt_swig.i
42
    ${CMAKE_CURRENT_BINARY_DIR}/pmt_swig_doc.i
43
    DESTINATION ${GR_INCLUDE_DIR}/gnuradio/swig
44
    COMPONENT "gruel_swig"
45
)