Do not overwrite implementation.rs in the tests.

master
Jos van den Oever 2017-11-20 09:05:48 +01:00
parent 192f9bf978
commit 531e4798fc
1 changed files with 1 additions and 2 deletions

View File

@ -10,11 +10,10 @@ function(rust_test NAME DIRECTORY)
add_custom_command(
OUTPUT "${DIR}/src/interface.rs"
"${DIR}/src/implementation.rs"
"${SRC}/${NAME}_rust.h"
# if the cpp file is marked GENERATED, CMake will not check it for moc
# "${SRC}/${NAME}_rust.cpp"
COMMAND "${GENERATOR}" --overwrite-implementation "${SRC}/${NAME}.json"
COMMAND "${GENERATOR}" "${SRC}/${NAME}.json"
MAIN_DEPENDENCY "${NAME}.json"
DEPENDS rust_qt_binding_generator
)