diff --git a/task3/CMakeLists.txt b/task3/CMakeLists.txt index ad8f6b9..13e97bc 100644 --- a/task3/CMakeLists.txt +++ b/task3/CMakeLists.txt @@ -1,4 +1,3 @@ - find_package(Qt6 COMPONENTS Core REQUIRED) add_executable(task3-chpt3ex12) @@ -7,4 +6,5 @@ target_sources(task3-chpt3ex12 PRIVATE main.cpp) target_link_libraries(task3-chpt3ex12 PRIVATE - Qt6::Core) \ No newline at end of file + Qt6::Core + Qt6::Multimedia) \ No newline at end of file diff --git a/task3/main.cpp b/task3/main.cpp index 45d3414..3e8c0ca 100644 --- a/task3/main.cpp +++ b/task3/main.cpp @@ -89,6 +89,7 @@ protected: int main(int argc, char *argv[]) { //QCoreApplication app(argc, argv); + QSemaphore lockC(1); QSemaphore lockBC(0);