SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS /subsystem:console )
ENDIF( ${${EXE_NAME}_CONSOLE} )
ELSE(WIN32 AND ${EXE_NAME}_HAS_GUI )
- ADD_EXECUTABLE(${EXE_NAME} ${${EXE_NAME}_SOURCES})
+ IF(${EXE_NAME}_HAS_GUI AND APPLE)
+ ADD_EXECUTABLE(${EXE_NAME} MACOSX_BUNDLE ${${EXE_NAME}_SOURCES})
+ ELSE(${EXE_NAME}_HAS_GUI AND APPLE)
+ ADD_EXECUTABLE(${EXE_NAME} ${${EXE_NAME}_SOURCES})
+ ENDIF(${EXE_NAME}_HAS_GUI AND APPLE)
ENDIF(WIN32 AND ${EXE_NAME}_HAS_GUI )
TARGET_LINK_LIBRARIES(${EXE_NAME} ${${EXE_NAME}_LINK_LIBRARIES})