Whats wrong with ParaView&#39;s CMake code? ;-)<div><br></div><div>The relevant section to doing bundle utilities on non Mac Platforms is this blob from ParaView\Applications\ParaView\CMakeLists.txt</div><div><br></div><div>

<div>set(DIRS) # directories to search for prerequisites</div><div><br></div><div>IF(PARAVIEW_BUILD_QT_GUI)</div><div>  list(APPEND DIRS ${QT_BINARY_DIR} ${QT_LIBRARY_DIR})</div><div>ENDIF(PARAVIEW_BUILD_QT_GUI)</div><div>

<br></div><div>IF(VTK_USE_FFMPEG_ENCODER)</div><div>  get_filename_component(FFMPEG_DIR &quot;${FFMPEG_avcodec_LIBRARY}&quot; PATH)</div><div>  list(APPEND DIRS ${FFMPEG_DIR})</div><div>ENDIF(VTK_USE_FFMPEG_ENCODER)</div>

<div><br></div><div>IF(PARAVIEW_ENABLE_PYTHON)</div><div>  get_filename_component(PYTHON_BIN_DIR &quot;${PYTHON_EXECUTABLE}&quot; PATH)</div><div>  get_filename_component(PYTHON_LIB_DIR &quot;${PYTHON_LIBRARY}&quot; PATH)</div>

<div>  list(APPEND DIRS ${PYTHON_BIN_DIR} ${PYTHON_LIB_DIR})</div><div>ENDIF(PARAVIEW_ENABLE_PYTHON)</div><div><br></div><div>IF(PARAVIEW_USE_MPI)</div><div>  get_filename_component(MPI_LIB_DIR &quot;${MPI_LIBRARY}&quot; PATH)</div>

<div>  get_filename_component(MPI_BIN_DIR &quot;${MPIEXEC}&quot; PATH)</div><div>  list(APPEND DIRS ${MPI_LIB_DIR} ${MPI_BIN_DIR})</div><div>ENDIF(PARAVIEW_USE_MPI)</div><div><br></div><div>set(_extension)</div><div>set(_dir &quot;${PV_INSTALL_LIB_DIR}&quot;)</div>

<div>IF(WIN32)</div><div>  set(_extension &quot;.exe&quot;)</div><div>  set(_dir &quot;bin&quot;)</div><div>ENDIF(WIN32)</div><div><br></div><div>set(APPS &quot;\${CMAKE_INSTALL_PREFIX}/${_dir}/paraview${_extension}&quot;)  # paths to executables</div>

<div><br></div><div># run Bundle utilities</div><div>INSTALL(CODE &quot;</div><div>   include(\&quot;${ParaView_CMAKE_DIR}/BundleUtilities.cmake\&quot;)</div><div>   fixup_bundle(\&quot;${APPS}\&quot;   \&quot;\&quot;   \&quot;${DIRS}\&quot;)</div>

<div>   &quot; COMPONENT BrandedRuntime)</div><br><div class="gmail_quote">On Sat, Dec 11, 2010 at 12:31 PM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Is there a concise example for BundleUtilites aimed at Windows? I<br>
_think_ I get how to use it on OS X but I am failing miserably on<br>
Windows side of things. My installation code is turning into a mess<br>
currently due to using BundleUtilities on the OS X side and manually<br>
writing CMake code to move stuff around on the Windows side.<br>
<br>
 Any help is appreciated. I tried walking through the ParaView CMake<br>
code but that proved almost impossible.<br>
<br>
Thanks<br>
_________________________________________________________<br>
Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a><br>
Principal Software Engineer                  Dayton, Ohio<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>