Do I have to create or edit the CMakeLists.txt files after I tried to add new files and edit the project files?

Hi All,

Sorry to ask this question, I just learned a little about cmake. 

Now I wanted to add a few src files based on the light switch example in SES.  Do I have to create or edit the CMakeLists.txt files for my new added files? 

Currently I used the configuration of the light switch example (using gcc), and didn't change anything for the cmakelists.txt files. I builded the project successfully.

Is it right?  I wanna know how to create or edit the cmakelists.txt files for my project or Is there a nother way to build the project?  Any suggestions will be helpful.

Thanks in advance.

Related