[CMake] Using CMake for general scripting tasks?

Konstantin Tokarev annulen at yandex.ru
Tue Nov 14 04:44:09 EST 2017



14.11.2017, 03:46, "Sebastian Gniazdowski" <psprint at zdharma.org>:
> Hello
> CMake has so many powerful features that I always suspected, that it can be used for tasks normally handled by Bash or sh. I've found following package manager written in CMake:
>
> https://docs.hunter.sh/en/latest/overview/what-is-it.html
>
> So I think this project confirms CMake's potential for handling general scripting tasks. However, it's hard to get some inspiration from Hunter, it's just a large collection of CMake packages focused on one specialized goal.
>
> But maybe someone used CMake for less specialized scripting tasks and would share? I'm writing Zsh plugin manager, Zplugin, and I want to integrate with CMake somehow, to get some swiss army knife features.

For general scripting tasks use general-purpose scripting language, e.g. Perl, Python, Ruby. You will avoid many issues of sub-par languages, make your programs less verbose, and will be able to use huge collections of 3rd party modules which can do almost anything you can think about

>
> --
> Sebastian Gniazdowski
> psprint /at/ zdharma.org
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake

-- 
Regards,
Konstantin


More information about the CMake mailing list