[CMake] Running external programs
Mika.Rajala at patria.fi
Mika.Rajala at patria.fi
Thu Apr 8 04:29:23 EDT 2010
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
More information about the CMake
mailing list