Allow to pass include directories to the add_swig_xyz commands

This will be needed when the wrappers no longer live in
the same directory as the objects they are wrapping.
This commit is contained in:
Geert Janssens
2019-09-30 22:31:46 +02:00
parent e493d42def
commit 33e1ff645c
14 changed files with 41 additions and 19 deletions

View File

@@ -5,7 +5,7 @@ add_subdirectory(example)
# Command to generate the swig-gnc-module.c wrapper file
gnc_add_swig_guile_command (swig-gnc-module-c
SWIG_GNC_MODULE_C swig-gnc-module.c
${CMAKE_CURRENT_SOURCE_DIR}/gnc-module.i
${CMAKE_CURRENT_SOURCE_DIR}/gnc-module.i ""
)
set (gnc_module_SOURCES gnc-module.c)

View File

@@ -1,7 +1,7 @@
gnc_add_swig_guile_command (swig-bar-c
SWIG_BAR_C swig-bar.c
${CMAKE_CURRENT_SOURCE_DIR}/bar.i bar.h
${CMAKE_CURRENT_SOURCE_DIR}/bar.i "" bar.h
)
add_library(bar EXCLUDE_FROM_ALL bar.c bar.h)

View File

@@ -1,7 +1,7 @@
gnc_add_swig_guile_command (swig-baz-c
SWIG_BAZ_C swig-baz.c
${CMAKE_CURRENT_SOURCE_DIR}/baz.i baz.h
${CMAKE_CURRENT_SOURCE_DIR}/baz.i "" baz.h
)
add_library(baz EXCLUDE_FROM_ALL baz.c baz.h)

View File

@@ -1,7 +1,7 @@
gnc_add_swig_guile_command (swig-foo-c
SWIG_FOO_C swig-foo.c
${CMAKE_CURRENT_SOURCE_DIR}/foo.i foo.h
${CMAKE_CURRENT_SOURCE_DIR}/foo.i "" foo.h
)
add_library(foo EXCLUDE_FROM_ALL foo.c foo.h)