Hi all,<br><br>I a m trying to add an icon to my BUNDLE executable on OSX, but I cannot figure how to do that. Here is the part of my CMakeLists.txt :<br><br>IF(UNIX)<br>&nbsp;&nbsp;&nbsp; IF(APPLE)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SET( MACOSX_BUNDLE_ICON_FILE &quot;os_freebsd.icns&quot; )<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADD_EXECUTABLE(ViewerITK MACOSX_BUNDLE ${SRC_DIR}/main/viewer.cpp ${ALL_VIEWER_SOURCES} ${ALL_VIEWER_HEADERS} )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #ADD_CUSTOM_COMMAND( TARGET ViewerITK POST_BUILD<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #COMMAND mkdir ARGS ${CMAKE_CURRENT_BINARY_DIR}/Release/ViewerITK.app/Contents/Resources<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #COMMAND cp ARGS ${MACOSX_BUNDLE_ICON_FILE} ${CMAKE_CURRENT_BINARY_DIR}/Release/ViewerITK.app/Contents/Resources )<br>&nbsp;&nbsp;&nbsp; ELSE(APPLE)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ADD_EXECUTABLE(ViewerITK ${SRC_DIR}/main/viewer.cpp ${ALL_VIEWER_SOURCES} ${ALL_VIEWER_HEADERS} )<br>
&nbsp;&nbsp;&nbsp; ENDIF(APPLE)<br>&nbsp;&nbsp;&nbsp; ADD_DEFINITIONS(-Wall)<br>ENDIF(UNIX)<br><br><br>What am I doing wrong ?<br><br>Regards,<br><br>Olivier<br>