[cmake] Update sample CMakeLists.txt.