Update CMakeLists.txt

Added support for executables to CMake script.