On Tuesday 24 March 2009, ankit jain wrote:
> hi all,
>
> Iam doing the following through my cmakelist.txt
>
> add_custom_target(mytarget)
> add_custom_command(TARGET mytarget POST_BUILD
> COMMAND ${CMAKE_COMMAND} -E tar xvf ${CMAKE_CURRENT_SOURCE_DIR}/t1.tar)
> this cmakelist is written in subfolder of a mainfolder..
>
> But the problem is that files are not extracted and it is not showing any
> error.Hm, I never tried to use add_custom_command(TARGET ... ) with a custom target. So if you do "make mytarget" then tar is not executed ? Did you try to do this directly using add_custom_target(), i.e. put the tar-command in the add_custom_target() ? Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
