avrec crash/math fix (sheepy here, committing koda's fix because I'm tired of having it lying around in my repo :P
if(UNIX AND NOT APPLE)
configure_file(hwengine.desktop.in hwengine.desktop)
file(GLOB miscfiles *.xml *.desktop)
install(FILES ${miscfiles} DESTINATION ${SHAREPATH}/Data/misc)
install(FILES hedgewars.xpm DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps)
endif()