[CMake] Windows .rc resource files in Fortran projects?

Volker Enderlein volker.enderlein at ifm-chemnitz.de
Thu Nov 15 09:22:50 EST 2018


Hi,

how does the project command looks inside your CMakeLists.txt file?

project(<name> LANGUAGES Fortran) should work

Cheers Volker

Am 15.11.2018 um 14:35 schrieb Magne Rudshaug:
>
> Hi,
>
> In some of my Fortran projects I have Windows resource files of type 
> .rc associated. Just listing this file along with the other Fortran 
> source files doesn’t work.
>
> In this case the project is interpreted as a C/C++ project. How can I 
> get cmake to treat the .rc file correctly (compiled by the resource 
> compiler) and at the same
>
> time interpret the project as a Fortran project?
>
> Thanks in advance for any reply?
>
> Magne
>
>

-- 



More information about the CMake mailing list