[CMake] how to add custom command/step to ExternalProject_Add ?

jagernicolas at legtux.org jagernicolas at legtux.org
Wed Apr 13 11:48:08 EDT 2016


 

Hi David, 

thx, I solve the problem with answer I got on stack, 

http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add
[1] 

regards, 

Nicolas 

On 2016-04-08 22:05, David Cole wrote: 

> This file has an example use which executes after download and before configure: 
> 
> https://github.com/Kitware/CMake/blob/master/Tests/ExternalProjectLocal/CMakeLists.txt [10]
> 
> HTH,
> David C. 
> 
> On Apr 8, 2016, at 6:39 PM, jagernicolas at legtux.org wrote:
> 
>> Hi, 
>> 
>> my question is related to : http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add [1] 
>> 
>> I have to use ExternalProject_Add to compile https://github.com/fukuchi/libqrencode [2] as a gitmodule, it requires to run autogen.sh before running configure. 
>> 
>> I don't understand how to use ExternalProject_Add_Step to add a step before CONFIGURE_COMMAND. 
>> 
>> regards, 
>> 
>> Nicolas
> 
>> -- 
>> 
>> Powered by www.kitware.com [3]
>> 
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ [4]
>> 
>> 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 [5]
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html [6]
>> CMake Training Courses: http://cmake.org/cmake/help/training.html [7]
>> 
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html [8]
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake [9]

 

Links:
------
[1]
http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add
[2] https://github.com/fukuchi/libqrencode
[3] http://www.kitware.com
[4] http://www.cmake.org/Wiki/CMake_FAQ
[5] http://cmake.org/cmake/help/support.html
[6] http://cmake.org/cmake/help/consulting.html
[7] http://cmake.org/cmake/help/training.html
[8] http://www.kitware.com/opensource/opensource.html
[9] http://public.kitware.com/mailman/listinfo/cmake
[10]
https://github.com/Kitware/CMake/blob/master/Tests/ExternalProjectLocal/CMakeLists.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160413/4878f43a/attachment.html>


More information about the CMake mailing list