filename contain ${} error
There is a source filename: ${name}main.cpp
And add to the executable source list:
add_executable(main ${name}main.cpp)
But I've got an error:
Legacy variable expansion in source file "${name}main.cpp" expanded to
"main.cpp" in target "main". This behavior will be removed in a future
version of CMake.