[CMake] OUTPUT_REQUIRED_FILES - how does it work ?

Wojciech Migda wojtek.golf at interia.pl
Thu Sep 10 14:11:11 EDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again,

while exploring possibilities to solve dependency problems I took a
peek at the OUTPUT_REQUIRED_FILES command.
I constructed simple CMakeLists.txt

OUTPUT_REQUIRED_FILES( bar.c baz.txt )

ADD_LIBRARY( foo bar.c )


and the contents of bar.c is:

#include <stdio.h>

int main()
{
    puts("hello world!");
    return 0;
}

after running cmake baz.txt is created, but its empty. Building the
library with make gives no effect neither. I tried to run
OUTPUT_REQUIRED_FILES on bar.o (depend.make contains dependencies on
bar.o) but it didn't help.

Can anyone point me in the right direction ?

Thanks in advance,

- -Wojciech
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFKqUE+0iFl+nAyImcRAt4kAJ4lqlSb1Nm+TQJrkwCuT8n/9szy0ACfUslV
H7NgAJIUnSNPr5YDgsj3Vy0=
=thTx
-----END PGP SIGNATURE-----


----------------------------------------------------------------------
Wygraj telefon HTC Touch Diamond 2.
Sprawd¼ >> http://link.interia.pl/f233f




More information about the CMake mailing list