On Thu, Feb 2, 2012 at 7:46 PM, Dev Guy <[email protected]> wrote: > I have a project file and within it I have created a test folder and > placed some testing code there. From my test CMakelist, I need to > access a .cpp file from the parent folder but I am not sure how to do > this? > > Thus the call to add_executable fails because it can't locate the source file. >
OK I figured out when I pass in the source file to add_executable, I just need to prefix the source file with "../" Is this the proper way to do it, or should I be using another cmake command to declare a source folder? Thanks, Rajinder -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
