diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 24b06251..6b351d41 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,6 +17,7 @@ if("${QT_PREFIX}" STREQUAL "Qt6") endif() add_executable(dlt-viewer + macdeployqt main.cpp mainwindow.cpp project.cpp @@ -52,7 +53,9 @@ add_executable(dlt-viewer resources/dlt_viewer.rc ) -target_link_libraries(dlt-viewer qdlt Qt6::Core Qt6::Network Qt6::Widgets Qt6::SerialPort) +target_link_libraries(dlt-viewer qdlt macdeployqt + "-framework AppKit" + Qt6::Core Qt6::Network Qt6::Widgets Qt6::SerialPort) if(CMAKE_COMPILER_IS_GNUCXX) # https://stackoverflow.com/questions/45329372/ubuntu-recognizes-executable-as-shared-library-and-wont-run-it-by-clicking