[CMake] FW: building a mixed language programm with CMake

Denis Scherbakov denis_scherbakov at yahoo.com
Tue Jun 9 09:55:42 EDT 2009



> Hi everybody,
> I´d like to build a mixed language programm with CMake,
> more specifically, I have a C++ and a Fortran90 source file
> I want to link:
> tp500main.cxx and electro1.f90

Did you try the following?

PROJECT(TEST Fortran)

SET(TEST_SRCS
  tp500main.cxx
  electro1.f90
)

ADD_EXECUTABLE(testExe  ${TEST_SRCS})


Denis


      


More information about the CMake mailing list