[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Using CMake for general scripting tasks?
From:       Alex Turbov <i.zaufi () gmail ! com>
Date:       2017-11-14 1:26:28
Message-ID: CANktQtureKT8672oSHJVjiAARpgevbbUppb7H1L96=iHwbfpLw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Sebastian,

Particularly I've used CMake "scripts" in some "build configurations" at
our CI server as a truly cross-platform scripting language for generic
tasks like download archive, check sha/md5, unpack it, do some file
operations... it works perfectly for Linux and Windows (it is why I chose
CMake %).

BTW, also I use it to talk to some REST API a little, but found lack of
setting arbitrary HTTP method... :( for simple requests it is fine, but
really soon it is not enough existed methods of `file` command... it is why
I'm thinking about to extend it (curl library used by CMake can do all that
I need)... but need to discuss first, cus I think `file` command is not a
suitable candidate for such kind of extension... (casting Brad King into
the thread %)

On Tue, Nov 14, 2017 at 12:39 AM, Sebastian Gniazdowski <psprint@zdharma.org
> wrote:

> 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.
>
> --
> 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

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Hi Sebastian,<br><br></div>Particularly I&#39;ve used CMake \
&quot;scripts&quot; in some &quot;build configurations&quot; at our CI server as a \
truly cross-platform scripting language for generic tasks like download archive, \
check sha/md5, unpack it, do some file operations... it works perfectly for Linux and \
Windows (it is why I chose CMake %).<br><br></div>BTW, also I use it to talk to some \
REST API a little, but found lack of setting arbitrary HTTP method... :( for simple \
requests it is fine, but really soon it is not enough existed methods of `file` \
command... it is why I&#39;m thinking about to extend it (curl library used by CMake \
can do all that I need)... but need to discuss first, cus I think `file` command is \
not a suitable candidate for such kind of extension... (casting Brad King into the \
thread %)</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 14, \
2017 at 12:39 AM, Sebastian Gniazdowski <span dir="ltr">&lt;<a \
href="mailto:psprint@zdharma.org" target="_blank">psprint@zdharma.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">Hello  <br> CMake has so many powerful features that I \
always suspected, that it can be used for tasks normally handled by Bash or sh. \
I&#39;ve found following package manager written in CMake:  <br> <br>
<a href="https://docs.hunter.sh/en/latest/overview/what-is-it.html" rel="noreferrer" \
target="_blank">https://docs.hunter.sh/en/<wbr>latest/overview/what-is-it.<wbr>html</a> \
<br> <br>
So I think this project confirms CMake&#39;s potential for handling general scripting \
tasks. However, it&#39;s hard to get some inspiration from Hunter, it&#39;s just a \
large collection of CMake packages focused on one specialized goal.  <br> <br>
But maybe someone used CMake for less specialized scripting tasks and would share? \
I&#39;m writing Zsh plugin manager, Zplugin, and I want to integrate with CMake \
somehow, to get some swiss army knife features.  <br> <br>
--<br>
Sebastian Gniazdowski<br>
psprint /at/ <a href="http://zdharma.org" rel="noreferrer" \
target="_blank">zdharma.org</a><br> <br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" \
target="_blank">www.kitware.com</a><br> <br>
Please keep messages on-topic and check the CMake FAQ at: <a \
href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" \
target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br> <br>
Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:<br> <br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br> CMake \
Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" \
target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br> CMake \
Training Courses: <a href="http://cmake.org/cmake/help/training.html" \
rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
 <br>
Visit other Kitware open-source projects at <a \
href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" \
target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" \
target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/cmake</a></blockquote></div><br></div>




-- 

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic