migrate C++ special edition samples to CMake