SlickEdit Community

SlickEdit Product Discussion => SlickEdit® => Topic started by: jmfrouin on March 03, 2008, 01:48:17 PM

Title: Slickedit and cmake ?
Post by: jmfrouin on March 03, 2008, 01:48:17 PM
Hi,
I try (without success for the moment) to setup SE with cmake.
Anyone find a solution ?
Thanks for your help
Best regards
Title: Re: Slickedit and cmake ?
Post by: natros on March 03, 2008, 06:50:32 PM
I have made a generator for SlickEdit when v10 was out and I have been using on linux. I don't know if it works with other systems.
If you want the patch for current cvs version just ask.
Title: Re: Slickedit and cmake ?
Post by: jmfrouin on March 03, 2008, 07:46:54 PM
Yes thanks with pleasure :)
jmfrouin@gmail.com
Title: Re: Slickedit and cmake ?
Post by: timdave on November 14, 2016, 05:19:09 PM
I have made a generator for SlickEdit when v10 was out and I have been using on linux. I don't know if it works with other systems.
If you want the patch for current cvs version just ask.

Any chance I can get your cmake generator?
Title: Re: Slickedit and cmake ?
Post by: Lee on November 14, 2016, 08:10:28 PM
@timdave:  We have a custom generator for Cmake that will generate SlickEdit workspace/projects.  I can give you a link to a build if you let me know what platform/OS you are looking for.
Title: Re: Slickedit and cmake ?
Post by: madmuggle on November 14, 2016, 09:04:22 PM
Lee, I would love this for Linux.  I am using Arch 64-bit if that matters, but I'll take anything linux compatible even 32 bit.

I was using CLion lately instead of SlickEdit because of the cmake stuff and I would love to get back into slickedit.  I just purchased 2016 (had let my license fall since 2014) and would love to use just SE instead of a combination of clion/se.
Title: Re: Slickedit and cmake ?
Post by: timdave on November 14, 2016, 09:07:39 PM
Awesome!  I primarily use use Fedora x64, I do use Debian x64 on occasion too.
Title: Re: Slickedit and cmake ?
Post by: timdave on November 15, 2016, 12:50:29 PM
@timdave:  We have a custom generator for Cmake that will generate SlickEdit workspace/projects.  I can give you a link to a build if you let me know what platform/OS you are looking for.

Awesome!  I primarily use use Fedora x64, I do use Debian x64 on occasion too.
Title: Re: Slickedit and cmake ?
Post by: madmuggle on November 15, 2016, 08:40:20 PM
@timdave Currently I am just lazy with my slickedit/cmake support.  Just wanted to share this in case it helps you.  Basically I set my "Build", "Rebuild" commands to something like this:

Build: make -j12 -f "%rp/build/Makefile"
Rebuild: make -j12 -f "%rp/build/Makefile" clean && make -j12 -f "%rp/build/Makefile"

Then in my main project directory I create the build dir and run the cmake, so:

$ cd /my/project/root
$ mkdir build
$ cd build
$ cmake ..

Now I can make/remake but I won't have control over the cmake part inside the IDE.  So if I need to change a variable or something I would have to use the command line, so for instance if I want to run release mode or something:

$ cd build
$ rm -rf *
$ cmake -DCMAKE_BUILD_TYPE=Release ..

Now I can build again inside slickedit.

It's hacky and I prefer a better method, but it works for me for now.  Just wanted to share in case you can get some use from that as well. :)
Title: Re: Slickedit and cmake ?
Post by: slick.999 on March 02, 2017, 06:30:49 PM
@timdave:  We have a custom generator for Cmake that will generate SlickEdit workspace/projects.  I can give you a link to a build if you let me know what platform/OS you are looking for.
I am also interested in the customer generator for cmake you've mentioned.
Would you PM me the link?

I am more interested in being able to generate the .vpw and .vpj files so that I can open the workspace and project generated by cmake for editing purposes. It would also be great that I can build from within slickedit.

My platform is debian/Jessie.

Thanks in advance!
Title: Re: Slickedit and cmake ?
Post by: pvonkaenel on April 13, 2017, 02:16:22 PM
Very Cool!  I would also like the generator.  I'm working under CentOS 7.2.

Is this a modification to CMake, or a CMake parser within SE?  Any chance this can be made publicly available?

Thanks,
Peter
Title: Re: Slickedit and cmake ?
Post by: TKasparek on April 13, 2017, 02:31:30 PM
I am interested in this as well.
Title: Re: Slickedit and cmake ?
Post by: Lee on April 13, 2017, 03:26:51 PM
We have done some development on building a custom generator for CMake.  It is currently based on CMake 3.2.2.  If anyone is interested I can provide a download link to a build, just let me know which platform (Linux/Win/Mac, 32/64-bit).  Can also provide the source if needed.

The customized generator builds SlickEdit workspaces and projects for tagging and navigation, and use makefiles for builds.  There is a plan to eventually support more recent versions of CMake, when time allows or demand requires it.  Also in future development, we would like to have it fully intergrated with our build system.  But this is the first go-around with it.
Title: Re: Slickedit and cmake ?
Post by: pvonkaenel on April 13, 2017, 03:46:13 PM
Hi Lee,

That's sounding pretty good.  Do you have a timeline for making the change available in more recent versions of CMake?  We're using CMake 3.7.1 due to features we depend on and cannot revert.

Thanks,
Peter
Title: Re: Slickedit and cmake ?
Post by: jschmier on April 25, 2017, 11:54:48 PM
We have done some development on building a custom generator for CMake.  It is currently based on CMake 3.2.2.  If anyone is interested I can provide a download link to a build, just let me know which platform (Linux/Win/Mac, 32/64-bit).  Can also provide the source if needed.

Hi Lee.  I am interested in the custom generator for CMake and would like to request a download link for a Windows 64-bit platform as well as the source.
Title: Re: Slickedit and cmake ?
Post by: Lee 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.
Title: Re: Slickedit and cmake ?
Post by: Lee 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.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland 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)
Title: Re: Slickedit and cmake ?
Post by: Clark 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.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland 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).
Title: Re: Slickedit and cmake ?
Post by: JeppeOland 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?
Title: Re: Slickedit and cmake ?
Post by: Lee 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.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland 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)
Title: Re: Slickedit and cmake ?
Post by: Lee 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.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland 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.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland 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.
Title: Re: Slickedit and cmake ?
Post by: Mike 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 (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.
Title: Re: Slickedit and cmake ?
Post by: hotdog321 on August 26, 2017, 09:53:31 AM
i am interested in this as well.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland on December 12, 2019, 05:49:36 PM
Any updates to this?
For example it doesn't support VS 2019 ...
Title: Re: Slickedit and cmake ?
Post by: patrickkox 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
Title: Re: Slickedit and cmake ?
Post by: guth on December 12, 2019, 08:03:59 PM
I got that as well, but downloading the source provided by slickedit and building cmake myself solved that issue.
Title: Re: Slickedit and cmake ?
Post by: patrickkox on December 12, 2019, 08:07:29 PM
I got that as well, but downloading the source provided by slickedit and building cmake myself solved that issue.
I'm actually doing the same now (started when I was posting my reply), but if it doesn't work with SlickEdit 2019 it doesn't really matter.
Title: Re: Slickedit and cmake ?
Post by: patrickkox on December 13, 2019, 01:34:07 PM
I've just compiled the version 3.8 of the SlickEdit cmake sources posted here and it seems to work with SlickEdit 2019.So what did I do :this made 1 SlickEdit Workspace called "Hello" and 2 ProjectsSo for the little I've tested the project generator seems to work well with SlickEdit 2019 on Debian Buster, but I didn't see an "execute" option to start the compiled program after the build (as is with a "normal" C++ project when started from within SlickEdit) so if this could be added that would be nice. Or better yet, full CMake integration  ;)
Hope this helps anyone.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland on January 14, 2020, 01:16:25 AM
Did anybody (SlickEdit guys?) port up to recent versions of CMake?
Title: Re: Slickedit and cmake ?
Post by: Clark on January 14, 2020, 02:46:18 PM
Version 3.14.5 is here:

https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.zip (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.zip)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.tar.gz (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5_src.tar.gz)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-win64-x64.zip (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-win64-x64.zip)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Linux-x86_64.tar.gz)
https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Darwin-x86_64.tar.gz (https://support.slickedit.com/outbound/CMake/cmake-3.14.5/cmake-3.14.5-Darwin-x86_64.tar.gz)

Note that the Linux version of cmake version 3.14.5 would not build on our standard Linux build machine. This means it's much more likely it won't run on your version of Linux and that you will have to build it.

We will look into updating this to 3.16.2 which is the latest version.
Title: Re: Slickedit and cmake ?
Post by: JeppeOland on January 15, 2020, 05:28:22 PM
Awesome - thanks!
Title: Re: Slickedit and cmake ?
Post by: patrickkox on November 21, 2021, 07:37:32 PM
Clark,
With the recent release of Debian 11, is there a chance of getting a version 3.18.4 of CMake (that's the version that comes with Debian 11)?
Title: Re: Slickedit and cmake ?
Post by: Clark on November 22, 2021, 03:15:34 PM
Latest version (3.20.5) is here:

https://community.slickedit.com/index.php/topic,18251.msg71959.html#msg71959 (https://community.slickedit.com/index.php/topic,18251.msg71959.html#msg71959)
Title: Re: Slickedit and cmake ?
Post by: patrickkox on November 23, 2021, 04:46:54 PM
Thanks!