On Sat, Mar 11, 2023 at 11:04 PM Michael Nazzareno Trimarchi
<
mic...@amarulasolutions.com> wrote:
>
> Hi Ben
> Need to optimize it but this work
>
> +set(compiler_launcher "${CMAKE_CURRENT_LIST_DIR}/compile-wrapper.sh")
> +set(CMAKE_C_COMPILER_LAUNCHER "${compiler_launcher}")
> +set(CMAKE_CXX_COMPILER_LAUNCHER "${compiler_launcher}")
> +
> +configure_file(wine_converter.py wine_converter.py COPYONLY)
>
> file(GLOB_RECURSE SOURCES
> "Master/Sources/Device/*.*"
> diff --git a/compile-wrapper.sh b/compile-wrapper.sh
> new file mode 100755
> index 0000000..8145741
> --- /dev/null
> +++ b/compile-wrapper.sh
> @@ -0,0 +1,7 @@
> +#!/bin/bash
> +
> +dep="${@: -1}".d
> +args=()
> +args+=("$@")
> +"${args[@]}"
> +exec ./wine_converter.py ${dep}
+#!/bin/bash
+
+dep="${@: -1}".d
+"${@}"
+exec ./wine_converter.py ${dep}
>
> Thank you
> Michael