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.