Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions ArduinoFloppyReader/ArduinoFloppyReader/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void listSettings(const std::wstring& port) {
ArduinoFloppyReader::DiagnosticResponse resp = io.openPort(port);
if (resp != ArduinoFloppyReader::DiagnosticResponse::drOK) {
printf("Unable to connect to device: \n");
printf(io.getLastErrorStr().c_str());
printf("%s", io.getLastErrorStr().c_str());
return;
}

Expand All @@ -154,7 +154,7 @@ void programmeSetting(const std::wstring& port, const std::wstring& settingName,
ArduinoFloppyReader::DiagnosticResponse resp = io.openPort(port);
if (resp != ArduinoFloppyReader::DiagnosticResponse::drOK) {
printf("Unable to connect to device: \n");
printf(io.getLastErrorStr().c_str());
printf("%s", io.getLastErrorStr().c_str());
return;
}

Expand Down Expand Up @@ -594,4 +594,3 @@ int main(int argc, char* argv[], char *envp[])

return 0;
}

26 changes: 26 additions & 0 deletions ArduinoFloppyReader/ArduinoFloppyReaderQt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
qt_add_executable(DrawBridgeQt MACOSX_BUNDLE
main.cpp
MainWindow.cpp
MainWindow.h
resources.qrc
)

target_link_libraries(DrawBridgeQt PRIVATE
drawbridge-core
Qt6::Core
Qt6::Gui
Qt6::Widgets
)

set_target_properties(DrawBridgeQt PROPERTIES
OUTPUT_NAME "DrawBridge"
MACOSX_BUNDLE_BUNDLE_NAME "DrawBridge"
MACOSX_BUNDLE_GUI_IDENTIFIER "uk.co.robsmithdev.DrawBridge"
MACOSX_BUNDLE_SHORT_VERSION_STRING "2.8.8"
MACOSX_BUNDLE_BUNDLE_VERSION "2.8.8"
)

install(TARGETS DrawBridgeQt
BUNDLE DESTINATION .
RUNTIME DESTINATION bin
)
Loading