Author Topic: Unable to import makefile project  (Read 5966 times)

brandolph

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Unable to import makefile project
« on: October 24, 2013, 04:13:10 PM »
Our project uses CMake-generated makefiles.  I'm trying to import the makefile as a project, and am confused about the options.  Here are the steps I'm performing:
I select Project -> Open Other Workspace -> Makefile
I click the browse button to select the Makefile I wish to import
I select Scan for recursive makefiles (or not; does not seem to matter)
I select the wildcard filetypes of *.c, *.cpp, etc
I click OK, then I'm presented with a Project Properties screen.
At this point, I'm unable to find documentation on how to proceed. 
There are no files in my project; only the makefile.  If I select Ok at this point, an empty project is created, and the only file in it is the makefile.  It was my understanding that I should not add all my source files manually.

Can anyone advise on what I'm doing wrong?

Graeme

  • Senior Community Member
  • Posts: 2827
  • Hero Points: 347
Re: Unable to import makefile project
« Reply #1 on: October 25, 2013, 08:17:09 AM »
Slickedit help file neglects to say what type of make files it can import but I suspect it's only MS Visual Studio or GNU make files.
Anyway, from this thread you can see that cmake isn't supported but you can use cmake to generate a visual studio solution and import that.
http://community.slickedit.com/index.php/topic,8496.msg36427.html#msg36427

Also it might be useful to know that in the slickedit project properties dialog, on the files tab there is an "import" button that allows reading in a file that contains a list of files to be added to the project.


brandolph

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: Unable to import makefile project
« Reply #2 on: October 25, 2013, 02:38:12 PM »
Thank you for the info :)
I actually thought about trying this exact thing.  The problem I ran into is that my version of cmake won't generate Visual Studio files (I'm on Linux).  I may actually look into compiling my own cmake to see if I can build one to support this on Linux.

Graeme

  • Senior Community Member
  • Posts: 2827
  • Hero Points: 347
Re: Unable to import makefile project
« Reply #3 on: October 25, 2013, 11:41:03 PM »
Have you tried generating a gnu make file and importing that into slickedit?  According to this thread it partially works.
http://community.slickedit.com/index.php/topic,8496.msg36427.html#msg36427

Maybe you could debug MI_getFilesInMakefile() in makefile.e and see what it's doing.
It looks like slickedit can generate a gnu makefile from a gnu project so you could try doing that, then try importing it and see if the import works properly in that situation.