It is actively used in CVS HEAD of ParaView on the Mac to build the standalone paraview client .app bundle.<div><br></div><div>Probably not as easy to understand as you&#39;d like, but it works.<br><br></div><div>This snippet is from the very bottom of ParaView&#39;s Applications/Client/CMakeLists.txt file. It&#39;s an install rule that runs the configured scripts. (The usage of GetPrerequisites is internal to BundleUtilities which is included in the configured cmake script...)</div>
<div><br></div><div><div># Call this last so the install script runs after the above targets are installed:</div><div>#</div><div>IF(Q_WS_MAC)</div><div>&nbsp;&nbsp;SET(OSX_MAKE_STANDALONE_BUNDLE_CMAKE_SCRIPT &quot;${ParaView_BINARY_DIR}/${PV_EXE_NAME}_OSX_MakeStandAloneBundle.cmake&quot;)</div>
<div>&nbsp;&nbsp;SET(OSX_MAKE_STANDALONE_BUNDLE_BASH_SCRIPT &quot;${ParaView_BINARY_DIR}/${PV_EXE_NAME}_OSX_MakeStandAloneBundle.sh&quot;)</div><div><br></div><div>&nbsp;&nbsp;CONFIGURE_FILE(&quot;${CMAKE_CURRENT_SOURCE_DIR}/<a href="http://CompleteBundle.cmake.in">CompleteBundle.cmake.in</a>&quot;</div>
<div>&nbsp;&nbsp; &nbsp;&quot;${OSX_MAKE_STANDALONE_BUNDLE_CMAKE_SCRIPT}&quot; @ONLY IMMEDIATE)</div><div>&nbsp;&nbsp;CONFIGURE_FILE(&quot;${CMAKE_CURRENT_SOURCE_DIR}/<a href="http://CreateBundle.sh.in">CreateBundle.sh.in</a>&quot;</div><div>&nbsp;&nbsp; &nbsp;&quot;${OSX_MAKE_STANDALONE_BUNDLE_BASH_SCRIPT}&quot; @ONLY IMMEDIATE)</div>
<div><br></div><div>&nbsp;&nbsp;INSTALL(SCRIPT &quot;${OSX_MAKE_STANDALONE_BUNDLE_CMAKE_SCRIPT}&quot;)</div><div>ENDIF(Q_WS_MAC)</div><div><br></div><div><br></div></div><div>HTH,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">
On Wed, Nov 5, 2008 at 12:19 PM, Stephen Collyer <span dir="ltr">&lt;<a href="mailto:scollyer@netspinner.co.uk">scollyer@netspinner.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">David Cole wrote:<br>
&gt; This line:INSTALL(SCRIPT &quot;${CMAKE_MODULE_PATH}/GetPrerequisites.cmake&quot;)<br>
&gt;<br>
&gt; doesn&#39;t really do anything at &quot;make install&quot; time.<br>
&gt;<br>
&gt; GetPrerequisites.cmake just defines a bunch of functions. You have to<br>
&gt; include it and then *call* some of the functions for it to do anything<br>
&gt; useful.<br>
&gt;<br>
&gt; So, you should write your own cmake script that gets called at &quot;make<br>
&gt; install&quot; time and then include GetPrerequisites.cmake and call some of the<br>
&gt; functions in it... presumably to install other prerequisite libraries as<br>
&gt; well.<br>
&gt;<br>
&gt; Does that make sense?<br>
<br>
</div>Yes, thanks. I must admit I wasn&#39;t sure how GetPrerequisites is used,<br>
and I haven&#39;t yet had time to look into further. I had cut-n-pasted<br>
that line from something that Bill Hoffman posted once in the<br>
pious hope that it would magically do all the work for me somehow.<br>
<br>
Are there any examples available that show real life usage<br>
of this module ?<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="Wj3C7c">Regards<br>
<br>
Steve Collyer<br>
Netspinner Ltd<br>
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>