Is there a way I can set CMake to generate a VS2010 Project file that has Pre Build or Post Build event in them?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the CMake documentation:
For example, if your target is named
MyProjectand you want to run the commandSomeCommandwith argument-1 -2after the building, add the following line after youradd_executableoradd_librarycall, because the target has to be defined:See the docs for
add_custom_commandfor more details on how to use it.