[CMake] Clever way to download and install cmake package?

Zaak Beekman zbeekman at gmail.com
Thu Aug 1 12:25:25 EDT 2013


Hi,
I am using the UseLATEX package, and I was wondering if there was a way to
automatically download the UseLATEX.cmake file to be included in the
CMakeLists.txt file. I was thinking of using the ExternalProject module,
however, I'm not sure this will work.

When is the external project downloaded? Is this a bad idea? (I'm pretty
sure it is...)

I think this is probably a bad idea and that I should probably just Fork
the UseLATEX github git repository, or just the UseLATEX.cmake file, but if
anyone has any insight, it would be much appreciated.

Izaak Beekman
===================================
(301)244-9367
Princeton University Doctoral Candidate
Mechanical and Aerospace Engineering
ibeekman at princeton.edu

UMD-CP Visiting Graduate Student
Aerospace Engineering
ibeekman at umiacs.umd.edu
ibeekman at umd.edu


On Thu, Aug 1, 2013 at 12:00 PM, <cmake-request at cmake.org> wrote:

> Send CMake mailing list submissions to
>         cmake at cmake.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://www.cmake.org/mailman/listinfo/cmake
> or, via email, send a message with subject or body 'help' to
>         cmake-request at cmake.org
>
> You can reach the person managing the list at
>         cmake-owner at cmake.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of CMake digest..."
>
>
> Today's Topics:
>
>    1. Custom launcher command for VS2010 (Sybren A. St?vel)
>    2. read file content to a variable at build-time (Rothbauer, Stefan)
>    3. Re: 2.8.11.2, Visual Studio 9 2008 Win64? (Bill Hoffman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 1 Aug 2013 12:09:53 +0200
> From: Sybren A. St?vel <sybren at stuvel.eu>
> Subject: [CMake] Custom launcher command for VS2010
> To: cmake at cmake.org
> Message-ID:
>         <CAAAfPCDzCJDAdC8KfrCX47cRzA9ep4ZT6wibR=
> bfRCsJcWV+JQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi list,
>
> I'm using Visual Studio 2010 to create Python modules in C++. In order to
> "run" those modules, I need to execute something like:
>
> C:\Python33\python.exe some_script_that_uses_the_module.py
>
> To generate the VS2010 solution we use CMake. What I'm looking for is to
> configure the above command in the Debug settings. I tried using the
> CreateLaunchers script from https://github.com/rpavlik/cmake-modules, but
> unfortunately that doesn't allow me to override the executable command.
>
> For example, our unit tests are compiled into an executable, but still need
> to be run via a Python script to set up the environment correctly.
> Unfortunately the following in my CMake project definition:
>
>
> set_target_properties(${PROJECTNAME}
>     PROPERTIES
>     LOCATION "${PYTHON_EXECUTABLE}"
>     LOCATION_DEBUG "${PYTHON_EXECUTABLE}"
>     LOCATION_RELEASE "${PYTHON_EXECUTABLE}"
>     LOCATION_RELWITHDEBINFO "${PYTHON_EXECUTABLE}"
> )
>
> create_default_target_launcher(${PROJECTNAME}
>     ARGS "run_boost_tests.py"
>     WORKING_DIRECTORY "${RAGE_SCRIPTS_DIR}"
> )
>
> still creates the following line in launch-boost_test-Debug.cmd:
>
> "C:\workspace\rage\build\tests\boost_test\DEBUG\boost_test.exe"
> run_boost_tests.py
>
> but I would like to see:
>
> "C:\Python33\python.exe" run_boost_tests.py
>
> Apparently the LOCATION target properties (which are used by the
> CreateLaunchers module) are read-only. Is there any way to solve this?
>
> Best,
> --
> Sybren A. St?vel
>
> http://stuvel.eu/
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.cmake.org/pipermail/cmake/attachments/20130801/8b79b095/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Thu, 1 Aug 2013 14:07:31 +0000
> From: "Rothbauer, Stefan" <stefan.rothbauer at siemens.com>
> Subject: [CMake] read file content to a variable at build-time
> To: "cmake at cmake.org" <cmake at cmake.org>
> Message-ID:
>         <
> 13B93FFB94978C46804A139A3E45E44C0137A6 at DEFTHW99EI1MSX.ww902.siemens.net>
>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello,
>
> I set up cmake to use a external project. This 3rd party library writes
> out a file which contains all include paths set by this library. For the
> master cmake project I need to read this information at build time into a
> cmake variable to set the include directories correctly.
> Is there a way to do this?
> I checked into External_Project_Add_Step but couldn?t find a solution.
> I can?t use FILE(READ.) either since the file with include paths is
> generated when cmake configures the 3rd party library.
> Execute_Process (cat .) can?t be used because the context switch destroys
> the information.
>
> Thanks for any hints!
>
> Best regards,
>
> Stefan
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 01 Aug 2013 10:49:57 -0400
> From: Bill Hoffman <bill.hoffman at kitware.com>
> Subject: Re: [CMake] 2.8.11.2, Visual Studio 9 2008 Win64?
> To: cmake at cmake.org
> Message-ID: <51FA7595.6080208 at kitware.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 7/31/2013 7:59 PM, Michael R. Dilworth wrote:
> > Building a 64bit version of cmake,  however a 32bit version worked
> before ~2.8.8
> > (sorry it's late...)
> You should not need a 64bit cmake.  The 32 bit version should build
> 64/32 bits.   I am not sure what you are looking for?
>
>
> -Bill
>
>
>
> ------------------------------
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
> End of CMake Digest, Vol 112, Issue 2
> *************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130801/0086c000/attachment.htm>


More information about the CMake mailing list