Given I have defined an executable with its main source file in a CMakeList.txt file:
CMakeList.txt
ADD_EXECUTABLE(MyExampleApp main.cpp)
Can I
It should be noted that for more recent versions of CMake (> 3.1 I think) one can append files to the SOURCES property on targets.
SOURCES
http://www.cmake.org/cmake/help/v3.3/prop_tgt/SOURCES.html