[CMake] Dependency rule not included
Vivien Delmon
vivien.delmon at creatis.insa-lyon.fr
Wed Dec 8 08:55:00 EST 2010
Hi all,
I have a problem with cmake and I did not find how to solve it in the
documentation.
My problem is that I have a custom_command that generate a C file and a
H file. If I add another C file in a library that needs the H file (like
#include "....h") it doesn't know how to generate it.
I joined a minimal test case that expose my problem.
I tried adding the H file in the library (with add_library), it works
but it's not exactly what I want. I just want to had the rule not a new
dependency to the library.
--
Vivien Delmon
PhD at CREATIS, Lyon
http://www.creatis.insa-lyon.fr/rio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101208/23ab5dc8/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: create_totoc_totoh.sh
Type: application/x-sh
Size: 77 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101208/23ab5dc8/attachment.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tata.c
Type: text/x-csrc
Size: 52 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101208/23ab5dc8/attachment.c>
More information about the CMake
mailing list