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

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
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: 1299
  • Hero Points: 130
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

  • Community Member
  • Posts: 44
  • Hero Points: 2
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: 6823
  • Hero Points: 526
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

  • Community Member
  • Posts: 44
  • Hero Points: 2
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

  • Community Member
  • Posts: 44
  • Hero Points: 2
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: 1299
  • Hero Points: 130
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

  • Community Member
  • Posts: 44
  • Hero Points: 2
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: 1299
  • Hero Points: 130
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

  • Community Member
  • Posts: 44
  • Hero Points: 2
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

  • Community Member
  • Posts: 44
  • Hero Points: 2
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.

Mike

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 100
  • Hero Points: 21
Re: Slickedit and cmake ?
« Reply #26 on: June 27, 2017, 03:08:52 PM »
We posted a new sticky thread here:  https://community.slickedit.com/index.php/topic,15318.0.html

The CMake 3.8.0 project generator on that page includes support for utility projects like the sample above.

hotdog321

  • New Community Member
  • Posts: 2
  • Hero Points: 0
Re: Slickedit and cmake ?
« Reply #27 on: August 26, 2017, 09:53:31 AM »
i am interested in this as well.

JeppeOland

  • Community Member
  • Posts: 44
  • Hero Points: 2
Re: Slickedit and cmake ?
« Reply #28 on: December 12, 2019, 05:49:36 PM »
Any updates to this?
For example it doesn't support VS 2019 ...

patrickkox

  • Senior Community Member
  • Posts: 136
  • Hero Points: 6
  • Debian GNU/Linux user
Re: Slickedit and cmake ?
« Reply #29 on: December 12, 2019, 07:58:46 PM »
It also doesn't seem to work with modern Linux distro's (like my Debian Buster), it's looking for libssl1.0 but libssl1.1 is installed (same for libcrypto).
Quote
./cmake: error while loading shared libraries: libssl.so.10: cannot open shared object file: No such file or directory