SOURCES += rustlib.rs HEADERS += rustlib.h TEMPLATE = aux CONFIG += no_keywords # Custom build step cargo_build.target = cargo_build cargo_build.depends = FORCE build_pass:CONFIG(release, debug|release) { cargo_build.commands = cd $$PWD && C:\Users\njohnson\.cargo\bin\cargo.exe build --release --target-dir $$OUT_PWD } else { cargo_build.commands = cd $$PWD && C:\Users\njohnson\.cargo\bin\cargo.exe build --target-dir $$OUT_PWD } QMAKE_EXTRA_TARGETS += cargo_build PRE_TARGETDEPS += cargo_build