Hi All, <br><br>I am trying to replace the clearmake build system with cmake for one of my corporate projects. <br>This is a C++ based project and the interaction to database is being done using pro*C/C++ for which a meta compiler was provided by oracle. <br>
We write the database interaction code in a .pc file, which will be compiled by pro*C/C++ compiler (an executable named 'proc') to produce the regular .cxx files.<br>The generated .cxx files can be compiled using the regular cxx compilers.<br>
<br>I have gone through the details of add_custom_command and found that it can be used for the process which i have mentioned above.<br>But from the documentation, i see that the source file and target file name should be explicitly specified. <br>
What I am looking for is that, there should be a way by which using a single 'add_custom_command' i should be able to specify the rule for all my .pc files in a folder. <br>In other words, i should be able to say my source files as '*.pc' and my target file as 'sorcefile.cxx'. <br>
Also i would like to have this rule in my master CMakeLists.txt, so that it will be available in any sub directory. <br><br>Please let me know whether this is possible in cmake and if so, point me to a simple example of doing it. <br>
Appreciate your help on this. <br><br>Thanks,<br>-Thangaraj<br>