Commit ea2c5725 authored by Fred Emmott's avatar Fred Emmott
Browse files

Run the project cmake command in a ./qtcreator-build directory.

parent 56ebc27e
......@@ -80,9 +80,10 @@ CMakeProject::~CMakeProject()
// TODO make this function work even if it is reparsing
void CMakeProject::parseCMakeLists(const QDir &directory)
QDir buildDirectory(directory.absolutePath() + "/qtcreator-build");
QString cbpFile = findCbpFile(directory);
QString cbpFile = findCbpFile(buildDirectory);
CMakeCbpParser cbpparser;
qDebug()<<"Parsing file "<<cbpFile;
......@@ -152,9 +153,10 @@ void CMakeProject::createCbpFile(const QDir &directory)
// TODO we need to pass on the same paremeters as the cmakestep
qDebug()<<"Creating cbp file";
QProcess cmake;
cmake.start("cmake", QStringList() << "-GCodeBlocks - Unix Makefiles");
cmake.start("cmake", QStringList() << ".." << "-GCodeBlocks - Unix Makefiles");
qDebug()<<"cmake output: \n"<<cmake.readAll();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment