CMake Qt UIC failed
问题 I'm currently moving my project from QMake to CMake and I'm facing a problem with Qt UIC which try to process an ui file that does not exist instead of the actual file I want him to process. I have the following architecture . |___ CMakeLists.txt |___ MyProject.pro |___ mainwindow.ui |___ resource.qrc |___ source | |___ mainwindow.cpp | |___ *.cpp |___ include | |___ mainwindow.h | |___ *.h And here is my cmake cmake_minimum_required(VERSION 3.2) # Project name project(project) # Tell CMake