Move to VCPKG.

* Minor cleaning of CMakeLists.txt. Fix C++ warnings and Qt deprecation.
* Avoid using Python from virtual environment.
This commit is contained in:
Mikaël Capelle
2024-08-09 21:10:50 +02:00
parent e11d5ec00d
commit 7cca7018b3
45 changed files with 534 additions and 229 deletions
+3 -3
View File
@@ -30,14 +30,14 @@ PYBIND11_MODULE(organizer, m)
EXPECT_CALL(*mock, startApplication(Eq("invalid.exe"), _, _, _, _, _))
.WillRepeatedly(Return(INVALID_HANDLE_VALUE));
ON_CALL(*mock, waitForApplication)
.WillByDefault([&mock, original_handle = handle](
HANDLE handle, bool refresh, LPDWORD exitCode) {
.WillByDefault([&mock, original_handle = handle](HANDLE handle, bool,
LPDWORD exitCode) {
if (handle == original_handle) {
*exitCode = 0;
return true;
}
else {
*exitCode = -1;
*exitCode = static_cast<DWORD>(-1);
return false;
}
});