[CMake] Add icon for OSX platform
Yumin Yuan
yumin.yuan at kitware.com
Thu Apr 24 10:31:46 EDT 2008
On Thu, Apr 24, 2008 at 5:41 AM, Olivier Tournaire <olitour at gmail.com> wrote:
> IF(UNIX)
> IF(APPLE)
> SET( MACOSX_BUNDLE_ICON_FILE "os_freebsd.icns" )
> ADD_EXECUTABLE(ViewerITK MACOSX_BUNDLE ${SRC_DIR}/main/viewer.cpp
> ${ALL_VIEWER_SOURCES} ${ALL_VIEWER_HEADERS} )
Try adding the icon file as a source file too.
ADD_EXECUTABLE( ... ... ${MACOSX_BUNDLE_ICON_FILE})
-Yumin
~~~~~~~~~~~~~~~~
Yumin Yuan
R&D Engineer
Kitware Inc.
www.kitware.com
~~~~~~~~~~~~~~~~
More information about the CMake
mailing list