CLion build depend targets

ⅰ亾dé卋堺 提交于 2019-12-05 10:07:35

You can add the command add_dependencies to your CMakeLists.txt, it does what you want:

Make a top-level target depend on other top-level targets to ensure that they build before does.

Then you just need to create a "BUILD_ALL" target that depends on every other target.

Clion use cmake right? you can directly edit the cmake file. Check add_subdirectory command. http://www.cmake.org/cmake/help/v3.0/command/add_subdirectory.html

Configuring target dependencies works, but it is much easier to add an "all" to CLion's build options.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!