<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Apologies if this has already been discussed. I recently discovered CPack and am overjoyed at the prospect of being able to add simple packaging to my projects. MacOS X PackageMaker worked so easily, but so far I haven't been able to get it to work for RPMs.<div><br></div><div>Icmake/cpack versions are 2.4-patch 8</div><div>downloaded UseRPMTools.cmake from the kitware website..</div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div></div></div><div><br></div><div>My top-level CMakeLists.txt looks like this:</div><div><br></div><div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">PROJECT(fslview)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(LIBRARY_OUTPUT_PATH ${fslview_BINARY_DIR}/lib)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(EXECUTABLE_OUTPUT_PATH ${fslview_BINARY_DIR}/bin)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">INCLUDE_DIRECTORIES(${fslview_SOURCE_DIR}/fsl)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">INCLUDE_DIRECTORIES(${fslview_SOURCE_DIR}/fsl/newmat)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">INCLUDE_DIRECTORIES(${fslview_SOURCE_DIR}/src)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">ENABLE_TESTING()</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SUBDIRS(fsl src doc/fslview)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(CPACK_PACKAGE_NAME "fslview")</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(CPACK_PACKAGE_VENDOR "University of Oxford FMRIB Centre")</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "fslview - The FSL image viewer")</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(CPACK_PACKAGE_VERSION "3.1.0")</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(CPACK_RPM_PACKAGE_RELEASE 4)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">SET(CPACK_RPM_PACKAGE_LICENSE "GPL")</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"><br></span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">INCLUDE(CPack)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">INCLUDE(UseRPMTools)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">IF(RPMTools_FOUND)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;"> RPMTools_ADD_RPM_TARGETS(fslview)</span></font></div><div><font class="Apple-style-span" face="Courier" size="3"><span class="Apple-style-span" style="font-size: 11px;">ENDIF(RPMTools_FOUND)</span></font></div><div><br></div><div>When configuring I get a message saying that CMake is providing a minimal fslview.spec file but it doesn't seem to be populating it with any of the data I've provided, i.e., "Version: " is left blank, etc. Anyone using this successfully have some insight into what is wrong? I'd love to see some working examples :-)</div><div><br></div><div>-- </div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Dave Flitney, IT Manager</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Oxford Centre for Functional MRI of the Brain</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">E:<a href="mailto:flitney@fmrib.ox.ac.uk">flitney@fmrib.ox.ac.uk</a> W:+44-1865-222713 F:+44-1865-222717</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">URL: <a href="http://www.fmrib.ox.ac.uk/~flitney">http://www.fmrib.ox.ac.uk/~flitney</a></div><div><br></div></div></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>