[CMake] cpack with macosx

Michael Masters mmasters at gmail.com
Thu Jul 31 00:00:37 EDT 2008


I'm trying to get cpack working with our build and I'm a newbie with
cmake and cpack. Currently, I'm on MacOSX.

These are the steps I've taken so far to get things working:

1. Added 'INCLUDE(CPack)' to the bottom of our top level CMakeLists.txt file.
2. 'cmake .' from the root directory.
3. 'make package' from the root directory.

This seems to generate 4 artifacts for distribution:
- dmg
- sh
- tar.gz
- tar.bz2

The problem I'm having is that I don't have the executable in any of
the above artifacts. I'm not sure if this is a problem with mac or
just a config problem on my end. We have the following in one of the
CMakeLists.txt files in a subdirectory:

IF (APPLE)
    ....
    ADD_EXECUTABLE(OpenNERO MACOSX_BUNDLE ${OpenNERO_sources}
${OpenNERO_headers})
    ....
ENDIF(APPLE)

Any suggestions would be greatly appreciated.

Thanks in advance,
Mike


More information about the CMake mailing list