[CMake] Executing a CMake Custom Target from CTest
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Nov 4 04:11:41 EST 2009
On Tue, Nov 3, 2009 at 6:20 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> Mathieu Malaterre wrote:
>>
>> Hi there,
>>
>> I'd like to know if this is possible to execute a cmake custom
>> target from my nightly ctest script.
>> Eg. In cmake
>>
>> ...
>> ADD_CUSTOM_COMMAND(
>> OUTPUT bla.txt
>> COMMAND echo "bla" > bla.txt
>> VERBATIM
>> )
>> ADD_CUSTOM_TARGET(BLA DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/bla.txt)
This is really cool !
Thanks
--
Mathieu
More information about the CMake
mailing list