<div dir="ltr">You also need to add an install rule for your executable with INSTALL(TARGETS ...<br><br>"make install" should work first, then "make package" will work too.<br><br><br>HTH,<br>David<br><br>
<br><div class="gmail_quote">On Thu, Jul 31, 2008 at 12:00 AM, Michael Masters <span dir="ltr"><<a href="mailto:mmasters@gmail.com">mmasters@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to get cpack working with our build and I'm a newbie with<br>
cmake and cpack. Currently, I'm on MacOSX.<br>
<br>
These are the steps I've taken so far to get things working:<br>
<br>
1. Added 'INCLUDE(CPack)' to the bottom of our top level CMakeLists.txt file.<br>
2. 'cmake .' from the root directory.<br>
3. 'make package' from the root directory.<br>
<br>
This seems to generate 4 artifacts for distribution:<br>
- dmg<br>
- sh<br>
- tar.gz<br>
- tar.bz2<br>
<br>
The problem I'm having is that I don't have the executable in any of<br>
the above artifacts. I'm not sure if this is a problem with mac or<br>
just a config problem on my end. We have the following in one of the<br>
CMakeLists.txt files in a subdirectory:<br>
<br>
IF (APPLE)<br>
....<br>
ADD_EXECUTABLE(OpenNERO MACOSX_BUNDLE ${OpenNERO_sources}<br>
${OpenNERO_headers})<br>
....<br>
ENDIF(APPLE)<br>
<br>
Any suggestions would be greatly appreciated.<br>
<br>
Thanks in advance,<br>
Mike<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>
</blockquote></div><br></div>