You can create your own license and put it in to the first lines of some .cpp file. Else if you want to use already public license read the GPL and the BSD one and make your chose, just put a text file with the license in to the folder of the sources and thats all, you are protected.

Well you can look in EULA too.