rrcc icon indicating copy to clipboard operation
rrcc copied to clipboard

Add cmake build system

Open cryptomilk opened this issue 6 years ago • 4 comments

Hi,

I've wanted to create RPM packages for rrcc, however the qmake based files do not provide a way and also it is normally ugly to get it fully working. So I've started to write cmake files.

It correctly builds and installs. However the resources are not found like icons or translation because it looks for them in the same location as the binary.

The best would be to define those locations in a "config.h" file and then load them from those locations. Maybe have two, a in build tree location and a installation location.

I've only created them for Linux, changes for other systems are still missing but it is a start ...

cmake can create Visual Studio, mingw or msys build files too.

cryptomilk avatar Dec 16 '18 11:12 cryptomilk

For Windows you can create a NSIS installer using the cpack. You get a package target in mingw or VS

Example: https://git.cryptomilk.org/projects/cmocka.git/tree/CPackConfig.cmake

cryptomilk avatar Dec 16 '18 12:12 cryptomilk

This works on Linux and distributions could package rrcc now. It would be nice if rrcc would have a license ...

cryptomilk avatar Dec 20 '18 15:12 cryptomilk

Hi,

thanks for your work, but I've no time atm to look at this.

I never used cmake (don't like it, to complex) and for installers I prefer the Qt Installer Framework. Works on WIN/LIN/MAC without problems and is easy to use.

A license is added now.

LazyT avatar Dec 21 '18 20:12 LazyT

Hey!

cmake isn't really that hard that hard to learn and offers nice features. Take a look at https://cliutils.gitlab.io/modern-cmake/

We could also add support for Windows. If I find the time I can fire up a windows install and work on supporting windows.

cryptomilk avatar Dec 22 '18 17:12 cryptomilk