QCreator是可以打開CMakeLists.txt工程的,但是如果是Makefile就不work了。
只能祭上qmake大殺器了:
比如,想學習一下百度的文件系統BFS:
DemoBFS.pro
TEMPLATE = subdirs
SUBDIRS = common \
bfs
bfs.pro
TEMPLATE = app
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
FUSE_FILES += $$files(fuse/*.*,true)
FUSE_LOWLEVEL_FILES += $$files(fuse_lowlevel/*.*,true)
SRC_FILES += $$files(src/*.*,true)
TERA_FILES += $$files(tera/*.*,true)
SOURCES += \
main.cpp \
$${FUSE_FILES} \
$${FUSE_LOWLEVEL_FILES} \
$${SRC_FILES} \
$${TERA_FILES}
common.pro
TEMPLATE = lib
CONFIG += console c++11
CONFIG -= app_bundle
CONFIG -= qt
INCLUDE_FILES += $$files(include/*.*,true)
SRC_FILES += $$files(src/*.*,true)
HEADERS += \
$${INCLUDE_FILES}
SOURCES += \
$${SRC_FILES}
INCLUDEPATH += include \
CONFIG(debug, debug|release) {
win32:LIBS +=
unix:LIBS +=
} else {
win32:LIBS +=
unix:LIBS +=
}
又可以愉快的跳轉了~~~