DELBERGUE Guillaume

greenscript: prefer include path instead of using relative path

Signed-off-by: Guillaume Delbergue <guillaume.delbergue@greensocs.com>
... ... @@ -50,7 +50,7 @@ namespace std {
}
%{
#include "../include/greenscript/gsp_sc.h"
#include "greenscript/gsp_sc.h"
%}
%include "../include/greenscript/gsp_sc.h"
%include "greenscript/gsp_sc.h"
... ...
... ... @@ -50,7 +50,7 @@ namespace std {
}
%{
#include "../include/greenscript/gsp_sc.h"
#include ".greenscript/gsp_sc.h"
%}
%include "../include/greenscript/gsp_sc.h"
%include "greenscript/gsp_sc.h"
... ...
... ... @@ -11,9 +11,10 @@ add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/../gsp_scPYTHON_wrap.cxx
COMMAND ${SWIG_EXECUTABLE} -python -c++ -DUSE_GREENCONTROL
-o ${CMAKE_CURRENT_BINARY_DIR}/../gsp_scPYTHON_wrap.cxx
-I${CMAKE_CURRENT_SOURCE_DIR}/../include
-outdir ${CMAKE_CURRENT_BINARY_DIR}
../gsp_sc.i
DEPENDS ../gsp_sc.i)
${CMAKE_CURRENT_SOURCE_DIR}/../gsp_sc.i
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/../gsp_sc.i)
add_custom_target(gsp_scPYTHON_wrap
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/../gsp_scPYTHON_wrap.cxx)
... ...