cmake rework, cleanup a lot of redundant sections, separate library and binary install location, unify osx and win handling of the data directory (tested on win, lin and mac)
if(UNIX AND NOT APPLE)
configure_file(hwengine.desktop.in hwengine.desktop)
file(GLOB miscfiles *.xml *.desktop)
install(FILES ${miscfiles} DESTINATION ${SHAREPATH}/Data/misc)
endif()