You could add your custom target and specify that some target depends on it.
ADD_CUSTOM_TRAGET(TargetScript COMMAND shell-script.sh)
ADD_EXECUTABLE(TargetExe ${TARGET_SRCS})
ADD_DEPENDENCIES(TargetExe TargetScript)
You could also use ADD_CUSTOM_COMMAND and it's PRE_BUILD/PRE_LINK feature.
ADD_
t...
Ankit
>
>
> --- On Wed, 3/25/09, ankit jain wrote:
>
> > From: ankit jain
> > Subject: [CMake] Argument passing to shell script through cmake
> > To: cmake@cmake.org
> > Date: Wednesday, March 25, 2009, 5:54 AM
> > Hi all,
> >
> > I want
Did you try EXECUTE_PROCESS and ADD_CUSTOM_COMMAND?
Denis
--- On Wed, 3/25/09, ankit jain wrote:
> From: ankit jain
> Subject: [CMake] Argument passing to shell script through cmake
> To: cmake@cmake.org
> Date: Wednesday, March 25, 2009, 5:54 AM
> Hi all,
>
> I
Hi all,
I want to run one shell script which requires some arguments to pass in
cmakelists file.
Simply using install command to run it does not allow to pass arguments to
it.
How to do it
ankit
___
Powered by www.kitware.com
Visit other Kitware