[CMake] how to specify a different source directory

Dev Guy devguy.ca at gmail.com
Thu Feb 2 19:46:10 EST 2012


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.

-- 
Kind Regards,
Rajinder Yadav


More information about the CMake mailing list