MantisBT - CMake
View Issue Details
0007632CMakeCMakepublic2008-09-08 12:452016-06-10 14:30
A. Klitzing 
Bill Hoffman 
normalfeatureN/A
closedmoved 
 
 
0007632: Generator for NetBeans
I like to request generator-support for the open-source IDE "NetBeans". The configuration is in XML and can use normal Unix Makefiles.

http://wiki.netbeans.org [^]
No tags attached.
Issue History
2008-09-08 12:45A. KlitzingNew Issue
2008-09-08 17:55Bill HoffmanStatusnew => assigned
2008-09-08 17:55Bill HoffmanAssigned To => Bill Hoffman
2008-09-08 17:55Bill HoffmanNote Added: 0013371
2008-09-10 12:20A. KlitzingNote Added: 0013396
2008-10-01 12:51Bill HoffmanNote Added: 0013648
2009-01-10 09:42Alex NeundorfNote Added: 0014522
2010-05-21 08:27Sebastian MeierNote Added: 0020805
2010-05-31 12:32Sebastian MeierNote Added: 0020876
2010-06-01 03:48Sebastian MeierNote Added: 0020882
2011-02-19 15:58Alex NeundorfNote Added: 0025524
2016-03-14 07:00A. KlitzingNote Added: 0040669
2016-06-10 14:27Kitware RobotNote Added: 0041448
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0013371)
Bill Hoffman   
2008-09-08 17:55   
I don't think much will happen with this unless there is some external help. Would you be interested in implementing this with some pointers?
(0013396)
A. Klitzing   
2008-09-10 12:20   
Yes, I can look into it in some weeks. Do you have some documentation for that?
(0013648)
Bill Hoffman   
2008-10-01 12:51   
Not much documentation. You would need the following:

1. be able to drive the build system from the command line (for try compile stuff)
2. create some sub-classes of local and global generators.

Another option might be cmExternalMakefileProjectGenerator. It depends on if makefiles will still be used.
(0014522)
Alex Neundorf   
2009-01-10 09:42   
Yes, have a look at cmExtraEclipseCDT4Generator.(h|cxx) and cmExtraCodeBlocksGenerator.(h|cxx), they are executed additionally to the normal makefile generator and generate projects files for the generated makefiles.
And it's not hard to do :-)

Alex
(0020805)
Sebastian Meier   
2010-05-21 08:27   
Hi,

we are planning to try our luck on a basic generator for NetBeans 6.9 within the next week. So if there's any addtional infos you can give us or any potential pitfalls we should pay attention to, please post it here.
(0020876)
Sebastian Meier   
2010-05-31 12:32   
Well, it turns out that three and a half working days were not enough to tackle this. I will have to look back into this once I get more time. I don't really know when this will be.

Meanwhile I created a github repository where I uploaded what I've done so far:

http://github.com/sebastianmeier/CMake/commit/0a43c4aeb7efe570ca2f5486f5582ac847ba3fa2 [^]

Here are some comments from the developers about what to do next - thanks for your help!

"If you are not going to use makefiles, then you do not want to base it
on the eclipse generator. You want to start with cmLocalGenerator and
cmGlobalGenerator."

"You might want to look at the VS 2010 generator as a model. It is the most recent one done. It has a target generator which is a bit easier than the
local/global split of the older way of doing things."

"Can NetBeans be driven from the command line? That is a requirement for getting try_compile to work."

"CMake includes TRY_COMPILE feature for which will create an
appropriate CMake project in order to try compile... Thus CMake will use CMAKE_BUILD_TOOL in order to try to build, since you said you won't go for "Makefile-based" generator there should be a way to "build" with NetBeans.

More informations:
cmake --help-variable CMAKE_BUILD_TOOL
cmake --help-variable CMAKE_GENERATOR
cmake --help-variable CMAKE_EXTRA_GENERATOR"

P.S.: A big help on how to implement a global/local generator seems to be Samuel E. Henley's Code Blocks Generator project:

http://osrail.net/construction/cmake-codeblocks-project [^]

I really liked his coding style - clean and readable.
(0020882)
Sebastian Meier   
2010-06-01 03:48   
More info:

http://stackoverflow.com/questions/1267403/which-netbeans-projects-files-should-go-into-source-control [^]

People discussing which NetBeans files would have to go into source control - and thus would have to be generated by a generator in order to create a working project.

Answer: configurations.xml, project.xml and the makefile.

Since the makefile is always initially the same, it would suffice to store a default makefile somewhere and copy it into the created project.
(0025524)
Alex Neundorf   
2011-02-19 15:58   
I think NetBeans supports cmake natively: http://forums.netbeans.org/ntopic26390.html [^]

So maybe a generator is not even necessary.

Alex
(0040669)
A. Klitzing   
2016-03-14 07:00   
I think this can be closed because netbeans supports cmake by itself
(0041448)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.