I have not seen a way to save the project options explicitly, but I have tested that at least some of the compiling options are saved automatically in a CMakeLists.txt.user file which is automatically created next to CMakeLists.txt. For a discussion on a similar issue: http://stackoverflow.com/questions/3898763/where-does-qtcreator-with-cmake-store-run-and-build-settings-and-how-to-set-via
Still maybe part of the following has to be done every time. Here are some steps I've used: If I'm correct, with qtcreator, you have to put the correct cmake parameters *the first time* you configure the project (hence, when you open the CMakeLists.txt and click "Run CMake") Here are the options I use myself -DCMAKE_INSTALL_PREFIX=~/bin/myqgisdirectory -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=False -DWITH_MAPSERVER=False The following one is mandatory if you want to control where to install the compiled files (choose a place where you do not need sudo rights to write): -DCMAKE_INSTALL_PREFIX= You can also configure the various build steps. You'll find all of this detailed here: http://blog.urbylog.info/2010/05/plasma-applet-development-walk-through_12.html Mayeul Le jeudi 30 décembre 2010 à 08:45 +0200, Tim Sutton a écrit : > Hi Noli > > I'm not an expert in Qt-Creator (I'm a vim guy!) but the last time I > tested it, I didnt see any option to create a .pro file from the > CMakeLists.txt based project. In fact that was one of my irritations > of trying to use creator - having to re-read in the project from the > CMakeLists.txt file every time. But it could be just that I missed > something essential in the process. > > I'm also interested in making an android port at some point... > > Regards > > Tim > > On Thu, Dec 30, 2010 at 6:18 AM, Noli Sicad <[email protected]> wrote: > > Hi, > > > > OK. I managed to install cmake package. > > > > But still I don't what should be in the Qgis.pro after I created this > > project? > > > > Anybody can post what should be in entries in Qgis.pro? > > > > Noli > > > > On 12/30/10, Noli Sicad <[email protected]> wrote: > >> Hi, > >> > >> I am trying to create a Qgis.pro (i.e. QGIS Qt Creator Project) based > >> on this instruction [1]. > >> > >> I am stuck on this step 3. > >> > >> 3. Run cmake in CMake Wizard. You can run it after adding project for > >> this you should navigate to cmake build directory it is qtcreator-build > >> in > >> project root and run ccmake .. like usually); > >> > >> There are a lot of cmake files in the cmake directory, which one should I > >> use? > >> > >> Anyway, anybody has exciting Qgis.pro (Qt Creator project) already and > >> like to share it. > >> > >> I like to try to compile Qgis in Qt - Android lighthouse and see what > >> happen. > >> > >> You watch the video on Android - Qt Creator Integration here - Video. > >> > >> http://code.google.com/p/android-lighthouse/wiki/QtCreatorIntegration > >> > >> Anybody interested in QGIS mobile for Android? > >> > >> > >> Thanks. Noli > >> > >> ~~~~~~~~~~~~ > >> > >> [1] http://www.osgeo.org/pipermail/qgis-developer/2009-October/007832.html > >> > >> Using QtCreator with QGis is easy. To open QGis in it you should do: > >> > >> 1. In menu File->Open File or Project (Ctrl+O); > >> 2. In open file dialog find CMakeLists.txt in the root of QGIs > >> (/usr/local/src/qgis_trunk/CMakeLists.txt) and open it; > >> 3. Run cmake in CMake Wizard. You can run it after adding project for > >> this you should navigate to cmake build directory it is qtcreator-build > >> in > >> project root and run ccmake .. like usually); > >> 4. After that QtCreator adds the new project with name qgis-1.x.x. > >> 5. If you need to correct cmake options you can do it now (see 3); > >> 6. Compile QGis (Ctrl+B); > >> 7. Switch to tab Projects. In section Build Settings->Build Steps push > >> Details button and add in Additional arguments: install. > >> 8. In section Run Settings push +Add and select in combo box Custom > >> Executable then push Details and add in Executable: > >> /patch/to/qgis/executable (/usr/local/bin/qgis); > >> 9. Start Debugging QGis: F5. > >> > > _______________________________________________ > > Qgis-developer mailing list > > [email protected] > > http://lists.osgeo.org/mailman/listinfo/qgis-developer > > > > > _______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
