This is the way I like it:
- Only call fpc on hwengine.pas, let compiler rule the dependencies
- Make hwengine.pas depend on all other source files, so 'make' always calls fpc
add_subdirectory(voices)
file(GLOB BaseSounds *.ogg)
install(FILES
${BaseSounds}
DESTINATION ${SHAREPATH}Data/Sounds)