[CMake] Out of tree source code inclusion
tunca tunc
atuncatunc at gmail.com
Fri Feb 15 07:06:46 EST 2008
Hi,
I need to include cpp files out of tree to build test codes.
The source file directory structure is
<CSC>
src\
<CSU1>
<CSU2>
test\
<CSU1_TEST>\
[Source Codes and CMakeLists.txt] under
this directory
<CSU2_TEST>
To add source code files under <CSU1> i added following line to
CMakeLists.txt under CSU1_TEST directory
FILE(GLOB_RECURSE CSU1_SOURCE <Absolute Path to CSU1>)
ADD_EXECUTABLE(${UNIT_NAME} ${CSU1_SOURCE} )
But still not able to add *cpp files under CSU1.
What should I do in order to add CSU1's *cpp files to source file list of
test code's build.
Thanks
--tunca
--
Who wills, can..
Who tries, does..
Who loves, lives..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20080215/430b8e4b/attachment.html
More information about the CMake
mailing list