SET(ENV{PYTHONPATH} $ENV{PYTHONPATH}:@LIBRARY_OUTPUT_PATH@:@Xdmf_BINARY_DIR@/libsrc)
SET(ENV{LD_LIBRARY_PATH} $ENV{LD_LIBRARY_PATH}:@LIBRARY_OUTPUT_PATH@:@Xdmf_BINARY_DIR@/libsrc)

MESSAGE("CALLING: " ${ARGV})
EXECUTE_PROCESS(
   COMMAND "@PYTHON_EXECUTABLE@" ${ARGV} 
   RESULT_VARIABLE import_res
   OUTPUT_VARIABLE import_output
   ERROR_VARIABLE  import_output
)

MESSAGE("${import_output}")
IF(import_res)
  MESSAGE(SEND_ERROR "${import_res}")
ENDIF(import_res)
