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

Reply via email to