C++ template using CMake.