From cmake Tue Nov 14 01:26:28 2017 From: Alex Turbov Date: Tue, 14 Nov 2017 01:26:28 +0000 To: cmake Subject: Re: [CMake] Using CMake for general scripting tasks? Message-Id: X-MARC-Message: https://marc.info/?l=cmake&m=151062279417585 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0698538902==" --===============0698538902== Content-Type: multipart/alternative; boundary="f403045f4faebd1ee8055de746a7" --f403045f4faebd1ee8055de746a7 Content-Type: text/plain; charset="UTF-8" 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 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 --f403045f4faebd1ee8055de746a7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 tas= ks 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` comman= d is not a suitable candidate for such kind of extension... (casting Brad K= ing into the thread %)

On Tue, Nov 14, 2017 at 12:39 AM, Sebastian Gniazdowski <pspr= int@zdharma.org> wrote:
Hel= lo=C2=A0
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 pa= ckage manager written in CMake:=C2=A0

https://docs.hunter.sh/en/latest/ove= rview/what-is-it.html=C2=A0

So I think this project confirms CMake's potential for handling general= scripting tasks. However, it's hard to get some inspiration from Hunte= r, it's just a large collection of CMake packages focused on one specia= lized goal.=C2=A0

But maybe someone used CMake for less specialized scripting tasks and would= share? I'm writing Zsh plugin manager, Zplugin, and I want to integrat= e with CMake somehow, to get some swiss army knife features.=C2=A0

--
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 in= formation on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html=
CMake Consulting: http://cmake.org/cmake/help/consul= ting.html
CMake Training Courses: http://cmake.org/cmake/help/tr= aining.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/cmak= e

--f403045f4faebd1ee8055de746a7-- --===============0698538902== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- 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 --===============0698538902==--