Simplified CMakeLists file to auto-gen tests and examples programs