added add_library add_executable for cmake mode
Merge pull request #68 from zchen24/master

added add_library add_executable for cmake mode