[LINUX] Adding template CMake files for linux.
[CMake template] Fix compilation errors.
Merge pull request #4143 from dumganhar/linux-template

[LINUX] Adding template CMake files for linux.