[CMake] Running external programs
Ryan Pavlik
rpavlik at iastate.edu
Thu Apr 8 10:34:12 EDT 2010
Look into "add_custom_command" - specifically the "post_build" option.
Ryan
On 04/08/2010 03:29 AM, Mika.Rajala at patria.fi wrote:
> Hi
>
> I need to generate a license file for my application and install it with
> the NSIS package generated.
>
> To generate it I need to run a program with various command line arguments,
> one of which is a path to the compiled executable.
>
> <MetaCode>
>
> add_executable(MyApp .....)
>
> execute_process(LicenseApp "-f MyApp")
>
> install(MyApp)
> install(${Path_to_license_file_generated_by_LicenseApp})
>
> </MetaCode>
>
> How do i do that?
>
> The problem i have is that i need the MyApp target to be compiled before
> calling the execute_process.
>
> Is there a way i can do this with CMake?
>
> -mika
>
> _______________________________________________
> 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
>
--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University
rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
More information about the CMake
mailing list