<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi all,<br>
<br>
I have decided to mix Fortran with C, due to a library that only has C
interface. Here is the scienario:<br>
<br>
suppose there are several programs, <font color="#009900">file1.f90</font>,
<font color="#3333ff">file2.f90</font>, <font color="#ff0000">file3.c</font>
and a C library &lt;lib&gt;.<br>
<br>
<font color="#009900"><font color="#000000">1. </font>file1.f90</font>
calls <font color="#3333ff">file2.f90</font> to generate a executable<br>
<font color="#3333ff"><font color="#000000">2. </font>file2.f90</font>
calls <font color="#ff0000">file3.c</font> to generate a module
&lt;mod&gt;<br>
3. <font color="#ff0000">file3.c</font> calls &lt;lib&gt;<br>
<br>
so how to setup CMakeLists.txt? Thanks for Help!<br>
<br>
Best regards,<br>
<br>
DONG Li<br>
</tt>
</body>
</html>