and then you’ll see chained targets, which generate the next
one. Mixing C/Fortran will be ok, - note that some of the generated files are
listed as sources in the next one – this ensures that the rules are defined in
From:[hidden email] [mailto:[hidden email]] On Behalf Of ?? Sent: 24 November 2009 16:22 To: CMake List Subject: [CMake] problem about Fortran and C mixing
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!
Powered by www.kitware.com