[cmake]如何在cmake生成完毕后自动执行其他命令,比如nmake

CMakeLists.txt中添加配置:

add_custom_command

官方文档:

https://cmake.org/cmake/help/v3.5/command/add_custom_command.html

参考:

http://stackoverflow.com/questions/15115075/how-to-run-ctest-after-building-my-project-with-cmake

猜你喜欢

转载自aigo.iteye.com/blog/2295197