Greetings,
I am learning cmake
I am building an executable which needs to first compile a C program and
then recompiling the object file with another file in fortran.
Here is an excerpt from a unix makefile I am attempt to port to cmake as part
of my cmake turotial.
fileC.o: fileC.c
$(C) -DDINT -c fileC.c
fileD: fileD.f fileC.o ../lib/libF.a
$(F77) $(F77FLAGS) -o fileD fileD.f fileC.o ../lib/libF.a $(F77LIB)
I think I have learnt enough cmake to do most of the above EXCEPT I am
unsure how on compile an object file (in this case fileC.o
with a fortran compiler (if I have translated the makefile correctly)
Does one rename the file or whatever?
Guidance on how to do this would be appreciated
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake