<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi forum,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am quite new to CMake tool. The application execution file that i am generating using CMake is stored in a separate directory and the execution reads an external file and store another external file inside the source root. I set the path for it. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">But it seems that it is not getting the external files. For example inside the source i have main.cpp , the external input file to read - <a href="http://main.cl/" target="_blank">main.cl</a>. When i compile the source the generated execution file is stored in another directory called bin. I go inside bin and run the execution and then it says that "No file found to read from as <a href="http://main.cl/" target="_blank">main.cl</a>". Then if i put the input file inside bin it works fine. </div>
<div style="font-family:arial,sans-serif;font-size:13px">I do not want to have it this way. I want CMake direct the application to look for input files from the source directory and save file as well inside the source directory.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am attaching my current CMakeLists.txt for your kind review and looking forward to some hint to get around this issue. </div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Regards</div><div style="font-family:arial,sans-serif;font-size:13px">
Sajjad</div><div class="" style="font-family:arial,sans-serif;font-size:13px"></div></div>