[colm] Add CMake project

Konstantin Podsvirov konstantin at podsvirov.pro
Sun Jan 28 16:24:33 UTC 2018


Hi Adrian,

28.01.2018, 18:46, "Adrian Thurston" <thurston at colm.net>:
> Hi Konstantin,
>
> Colm and ragel are both part of a larger ecosystem of (private) projects
> that are all built around autotools. I use scripts to generate part of
> build process, so standardizing on one build system makes sense for me.
> I often recommend people use cygwin to build on windows. It's quite
> good.
>
> Adrian

many projects now have multiple build systems. Different build system to solve the exact same problem and can exist together.

Build system CMake is very popular and very flexible. It has good support in various IDE.

Using popular build system may increase the popularity of your projects.

Example for autotools:

./autogen.sh
./configure
make
make install

Example for CMake:

cmake .
make
make install

You can see that after the configuration stage, both systems work identically.

Adrian, from your answer, I do not understand, can I expect that you will merge my changes?

In the future I plan to add a CMake build system in the project Ragel, too.

> On 2018-01-27 15:33, Konstantin wrote Podsvirov:
>> Hello Adrian Thurston and list!
>>
>> My name is Konstantin.
>>
>> What about adding cross-platform build system like CMake
>> (https://cmake.org)?
>>
>> This will help to solve the problem of porting the project on a non
>> Unix-like systems.
>>
>> I have some ideas and results as well.
>>
>> You can see the proposed changes in your browser:
>>
>> http://git.podsvirov.pro/?p=dad/fix/colm.git;a=commitdiff;h=cmake
>>
>> Or download using the version control system (branch `cmake`):
>>
>> git clone -b cmake git://podsvirov.pro/dad/fix/colm.git
>>
>> Here are my first results.
>>
>> Now implemented:
>> - Bootstrap `colm` program from sources;
>> - Install target `colm::coml` and `colm::libcolm`
>> via CMake's `colm` package.
>>
>> Shadow build support via CMake.
>>
>> Tested with MSYS2 and MinGW-w64 on Windows and with GCC on Linux.
>>
>> Detected issue when sizeof(word_t) < sizeof(void*).
>>
>> I want to see if I had kindred spirits and should I continue
>> this activity?
>>
>> Any questions and suggestions?
>>
>> Sorry for mistakes in text (I use translator).
>>
>> --
>> Regards,
>> Konstantin Podsvirov
>>
>> _______________________________________________
>> colm mailing list
>> colm at colm.net
>> http://www.colm.net/cgi-bin/mailman/listinfo/colm

Regards,
Konstantin Podsvirov




More information about the colm-users mailing list