mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user