错误:
CMake Error at src/Ui/CMakeLists.txt:15 (FIND_PACKAGE):
Could not find module FindQT4.cmake or a configuration file for package
QT4.
Adjust CMAKE_MODULE_PATH to find FindQT4.cmake or set QT4_DIR to the
directory containing a CMake configuration file for QT4. The file will
have one of the following names:
QT4Config.cmake
qt4-config.cmake
CMake Error at src/Ui/CMakeLists.txt:17 (INCLUDE):
include called with wrong number of arguments. Include only takes one
file.
-- Directory /root/workspace/CenDVC/src/Ui
CMake Error at src/Ui/CMakeLists.txt:40 (QT4_WRAP_CPP):
Unknown CMake command "QT4_WRAP_CPP".
-- Configuring incomplete, errors occurred!
或者类似。反正差不多。
情景:
WINDOWS下的Qt工程,使用cmake构建无误,移植Linux时的错误。如题,然后修改如下解决:
FIND_PACKAGE (Qt4)
#FIND_PACKAGE (QT4 REQUIRED)