[CMake] passing a list of files from c source code to cmake
Dan Kegel
dank at kegel.com
Wed Aug 5 17:08:36 EDT 2015
On Wed, Aug 5, 2015 at 3:17 PM, Owen Alanzo Hogarth <gurenchan at gmail.com> wrote:
> I can put those in some type of array in my c source code. Now is it
> possible to send that list back to cmake at build time so that it can copy
> those files to the binary tree on each build?
You can write a script that parses the C source file (should be easy if
you put the array body in a .h file with no decoration) and pulls
it into a CMake list.
More information about the CMake
mailing list