[CMake] problem about Fortran and C mixing

董理 dongli2020 at gmail.com
Tue Nov 24 10:21:37 EST 2009


Hi all,

I have decided to mix Fortran with C, due to a library that only has C
interface. Here is the scienario:

suppose there are several programs, file1.f90, file2.f90, file3.c and a
C library <lib>.

1. file1.f90 calls file2.f90 to generate a executable
2. file2.f90 calls file3.c to generate a module <mod>
3. file3.c calls <lib>

so how to setup CMakeLists.txt? Thanks for Help!

Best regards,

DONG Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091124/79040e90/attachment-0001.htm>


More information about the CMake mailing list