So i have created a GUI on a macOS System via CLion. The project compiled and worked on this plattform. Now i move this project to Windows on Visual Studio Code 2019 and im getting this error:
Here is my CMakeLists.txt:
cmake_minimum_required(VERSION 3.22)
project(environment_PO)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
set (CMAKE_PREFIX_PATH "C:/Qt/6.3.1/mingw_64")
find_package(Qt6 COMPONENTS
Core
Gui
Widgets
REQUIRED)
add_executable(environment_PO main.cpp mainWindow.h mainWindow.cpp datetime.h datetime.cpp generateSubjectCode.h generateSubjectCode.cpp loadSettings.h loadSettings.cpp saveSettings.h saveSettings.cpp)
target_link_libraries(environment_PO
Qt6::Core
Qt6::Gui
Qt6::Widgets
)
Can someone explain me what exactly is the problem? I have selected ISO C++17 as the language via the IDE Settings. So i dont know why this error keeps comming.

