NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Is it possible to enjoy NetBeans with CMake?

 
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users
View previous topic :: View next topic  
Author Message
magisu



Joined: 14 Nov 2008
Posts: 3

PostPosted: Sat Dec 20, 2008 11:36 pm    Post subject: Is it possible to enjoy NetBeans with CMake? Reply with quote

Hello!
I am using CMake to develop some KDE4 applications. However, It seems that CMake and NetBeans do not work together well. Is it possible to hack it?
Back to top
rakatan



Joined: 11 Apr 2009
Posts: 1

PostPosted: Sat Apr 11, 2009 4:28 pm    Post subject: cmake + netbeans Reply with quote

no hacks are necessary, create a cmake project, build a makefile, then create netbeans project from existing source + provide created Makefile. thats it Smile
Back to top
gbullock



Joined: 21 Apr 2010
Posts: 20
Location: Pacific Grove, CA

PostPosted: Wed Apr 21, 2010 9:18 pm    Post subject: Reply with quote

It's even easier with NetBeans 6.8:
  1. Don't create the Makefile -- in fact, delete it if it exists.
  2. File: New Project...: C/C++: C/C++ Project with Existing Sources
  3. After clicking Next, browse for the folder with your source files and CMakeList.txt file.
  4. For the "Select Configuration Mode", choose the Automatic radio button.

NetBeans will use the CMakeList.txt file to automatically populate the project, build the Makefile, and build your project.
Use the CMakeList.txt file to manage your project settings. NetBeans will run cmake as needed to rebuild the Makefile.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> C/C++ Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo