Generating a GMIN Eclipse project
Jump to navigation
Jump to search
Eclipse is an IDE which offers support for fortran via the photran module. CMake can automatically generate Eclipse projects using the following line
cmake -G "Eclipse CDT4 - Unix Makefiles" .
In any case I would recommend you to install your own eclipse (i used indigo) since the one installed is a bit outdated. To get the project into eclipse,
- install the photran extension (or just download Eclipse IDE for Parallel Application Developers, since it has Photran already installed)
- change workbench path to your svn root directory
- Right click into Project Explorer Window -> Import -> Existing project into workspace -> Select the the project directory and unselect (!!) copy project into workspace
- Open fortran perspective : Window->Open Perspective->Other then select fortran
- Right click on project and select Convert to fortran
- You'll also have to let the eclipse parser know that we have a fixed line length of > 72, you can find the option in Menu Bar -> Window -> Preferences -> Fortran -> Editor -> Fixed line length (set it to something like 200 or so). Optionally you can do the same in the project settings.
- Project options -> Fortran General -> Analysis and Refactoring -> Enable ! This will give you some powerful helper functionality
Unfortunately I did not get code completion or on the fly documentation do not work properly (the second one because all functions are not properly commented in doxygen style). Not sure whether that is possible here for fortran.
Some useful stuff:
- While one a function, press F3 (Or right click open declaration) and it'll directly jump to that function
- In project explorer strg+shift+r to search for a file