Running multiple cpp files (containing multiple main function) on Clion

Because mac computer use, previously used xcode, but xcode too heavyweight, and reinstall the system after the switch to the clion C ++, but it can not be found clion run multiple cpp files, so that the game can not open more files knock code is very depressed, so a search found a look and found that as long as the contents of the documents cmakeLists.txt altered, like:

If a plurality of main function contains, apart from additionally have a tag, then the upper right corner (upper right corner is not necessarily HHH) select the label, and then run it.

Guess you like

Origin blog.csdn.net/hrbust_cxl/article/details/92399417