Author Topic: Slickedit and cmake ?  (Read 3902 times)

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 993
  • Hero Points: 84
Re: Slickedit and cmake ?
« Reply #15 on: April 26, 2017, 01:10:59 pm »
There are 64-bit builds available, download here:

[removed outdated links]

Use the generator option -G "SlickEdit - Unix Makefiles".  The SlickEdit generator builds SlickEdit workspaces and projects for tagging and navigation, and use makefiles for builds.  You can PM me directly here if you have any issues or questions, or add to followup post in the Community Forum.

Source for that build can be found here:

[removed outdated links]

Source for the SlickEdit generator is located in:
       Source/cmExtraSlickEditGenerator.cxx
       Source/cmExtraSlickEditGenerator.h

I am going to try to find some time soon to upgrade to more updated versions of Cmake for those that have requested them.  I'll post them up when they are ready.
« Last Edit: May 09, 2017, 01:27:53 pm by Lee »

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 993
  • Hero Points: 84
Re: Slickedit and cmake ?
« Reply #16 on: May 09, 2017, 01:42:38 pm »
Have updated CMake generator to more recent versions, downloads are available at these links:

Windows:
https://support.slickedit.com/outbound/cmake/cmake-3.3.2/cmake-3.3.2-win64-x64.zip
https://support.slickedit.com/outbound/cmake/cmake-3.6.3/cmake-3.6.3-win64-x64.zip
https://support.slickedit.com/outbound/cmake/cmake-3.7.2/cmake-3.7.2-win64-x64.zip
https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0-win64-x64.zip

Linux:
https://support.slickedit.com/outbound/cmake/cmake-3.3.2/cmake-3.3.2-Linux-x86_64.tar.gz
https://support.slickedit.com/outbound/cmake/cmake-3.6.3/cmake-3.6.3-Linux-x86_64.tar.gz
https://support.slickedit.com/outbound/cmake/cmake-3.7.2/cmake-3.7.2-Linux-x86_64.tar.gz
https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0-Linux-x86_64.tar.gz

Source:
https://support.slickedit.com/outbound/cmake/cmake-3.3.2/cmake-3.3.2_src.zip
https://support.slickedit.com/outbound/cmake/cmake-3.6.3/cmake-3.6.3_src.zip
https://support.slickedit.com/outbound/cmake/cmake-3.7.2/cmake-3.7.2_src.zip
https://support.slickedit.com/outbound/cmake/cmake-3.8.0/cmake-3.8.0_src.zip

Only have the 64-bit builds available currently, but will do 32-bit builds on request.  Same for MacOS if someone needs it.

Use the generator option -G "SlickEdit - Unix Makefiles" or -G "SlickEdit - NMake Makefiles", depending on platform.  The SlickEdit generator builds SlickEdit workspaces and projects for tagging and navigation, and uses makefiles for builds.  You can PM me directly here if you have any issues or questions, or add to followup post in the Community Forum.

JeppeOland

  • Junior Community Member
  • Posts: 8
  • Hero Points: 1
Re: Slickedit and cmake ?
« Reply #17 on: May 23, 2017, 12:46:25 am »
Do you guys have plans to submit it to cmake so it will be included in future versions?
(They are on 3.8.1 now)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3592
  • Hero Points: 229
Re: Slickedit and cmake ?
« Reply #18 on: May 23, 2017, 03:31:40 pm »
Not in the near future. CMake's API's are still going through a lot of changes. For example, the original code we wrote was very broken for the new version. It makes more sense for us to build and test CMake versions until CMake's API's stabilize. I would hope with a very minor release they wouldn't break our changes but only time will tell.

For now, if you need some changes in a new version of CMake, please make a request.

JeppeOland

  • Junior Community Member
  • Posts: 8
  • Hero Points: 1
Re: Slickedit and cmake ?
« Reply #19 on: May 23, 2017, 11:47:29 pm »
3.8.0 works OK for me.
I was just wondering in general (since other editors have committed their support to the cmake repository directly).

JeppeOland

  • Junior Community Member
  • Posts: 8
  • Hero Points: 1
Re: Slickedit and cmake ?
« Reply #20 on: May 24, 2017, 11:36:09 pm »
I'm having an issue with the cmake you provided.

Part of my project is using a completely custom toolchain ...
So in a CMakeFiles.txt I have something like:

set(SRCS file1.a file2.a)

foreach(FILENAME ${SRCS})
    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.bin [snipped])
    list(APPEND MY_CUSTOM_BINARIES ${CMAKE_CURRENT_BINARY_DIR}/${FILENAME}.bin)
endforeach(FILENAME)

add_custom_target(MyCustomTarget DEPENDS ${MY_CUSTOM_BINARIES}
)

And in my main target (an executeable) CMakeFiles.txt I added:
add_dependencies(MyMainTarget MyCustomTarget)

cmake itself works fine, and the SlickEdit project files are built ... but the project doesn't include the custom stuff.

Any idea how I can add that?

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 993
  • Hero Points: 84
Re: Slickedit and cmake ?
« Reply #21 on: May 25, 2017, 02:10:34 pm »
I can definitely look into it.  I am guessing it is not listing or showing the custom target?  What should the expected results look like?   I'll can try to find some similar samples or if you could provide one that would definitely help.

JeppeOland

  • Junior Community Member
  • Posts: 8
  • Hero Points: 1
Re: Slickedit and cmake ?
« Reply #22 on: May 26, 2017, 12:00:10 am »
Awesome - thanks.

If you have trouble creating such a project, let me know and I can make a dummy one for you to test with.

Since this is in a separate CMakeFile.txt in a subdir, and it contains a target, it would be nice if it was treated the same way as other targets.
In other words, a separate MyCustomTarget.vpj with the sources populated.
(Don't know if it's easy for you to backtrac to the sources from the dependencies)

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 993
  • Hero Points: 84
Re: Slickedit and cmake ?
« Reply #23 on: May 26, 2017, 01:55:16 pm »
If you can create a small sample, that would be great.  That way I can see exactly the same scenario that you are seeing.  We aren't CMake experts, we know just enough to be a danger to ourselves and others.

JeppeOland

  • Junior Community Member
  • Posts: 8
  • Hero Points: 1
Re: Slickedit and cmake ?
« Reply #24 on: May 26, 2017, 05:14:12 pm »
Haha that pretty much describes myself and cmake too.
I'll try creating one today.

In the meantime, I saw in the cmake docs that I'm supposed to add a "SOURCES" tag to the add_custom_command list ... but that doesn't work for me either.

JeppeOland

  • Junior Community Member
  • Posts: 8
  • Hero Points: 1
Re: Slickedit and cmake ?
« Reply #25 on: May 26, 2017, 06:33:47 pm »
Here's a tiny sample that illustrates the problem.

The Custom project simply creates an object from a binary (using objcopy), and communicates the name up to the main project which links it.

I would expect a "Custom.vpj" to be created from this.