<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
If you set the CMAKE_Fortran_MODULE_DIRECTORY variable, then all
module files by default will be built into this folder. In our
case we set this to ${CMAKE_BINARY_DIR}/fortran. Since nothing
else is in this folder, you have a fairly good control over where
your mod files are if you want to install them afterwards... <br>
<br>
I haven't really tried to install these myself, but I would
imagine it should simply be<br>
install(DIRECTORY ${CMAKE_BINARY_DIR}/fortran DESTINATION
include/fortran/project)<br>
(or wherever you want the module files relative to the install
prefix.. Is there a correct place for them?)<br>
<br>
Hope this helps you along somewhat.<br>
<br>
Cheers,<br>
Yngve<br>
<br>
Den 10. mai 2013 19:24, skrev Neil Carlson:<br>
</div>
<blockquote
cite="mid:CABkMBNLLfLAQ1idPrCCEFTENmjzB94SRemVznr4viTj_QqwCtQ@mail.gmail.com"
type="cite">
<div dir="ltr">I'm trying to figure out how to install the module
(.mod) files that are generated by the Fortran compiler. I've
only found one thread on the topic from 3 years ago. The
solution there was to find the appropriate directory in the
build tree where these files were created and scarf up
everything there that looked right and copy them to the desired
install dir. It looks really fragile. Has cmake introduced any
tools/hooks in the meantime that would simplify this, is is that
still the way it has to be done? I'd be interested in hearing
from anyone that has a working solution.
<div>
<br>
</div>
<div style="">Thanks!</div>
<div style=""> Neil</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">--
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the CMake FAQ at: <a class="moz-txt-link-freetext" href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></pre>
</blockquote>
<br>
</body>
</html>