I have a .txt file in my project directory that I made and populated with data.
directory structure looks like:
/Users/asd/ClionProjects/ProjectWithT
I'm going to presume that the working directory is being set to the path to the executable file instead of your CMakeLists.txt file.
To fix this, EITHER: