How to convert qmake to cmake?
问题 I have a .pro file on my project, but now I want to port it to a CMakeLists.txt file. How can I do this? QT += core QT -= gui CONFIG += c++11 TARGET = test CONFIG += console CONFIG -= app_bundle TEMPLATE = app QT += network SOURCES += main.cpp \ test_interface.cpp \ motomanlibrary.cpp \ processing.cpp SOURCES += main.cpp \ test_interface.h \ motomanlibrary.h \ processing.h 回答1: QMake: The required libraries. QT += core QT -= gui QT += network CMake: only the add is necessary. An exclude (QT -