have fpc work in the right directory instead of passing the full path of the main module (avoids having full paths in debug build backtraces for the first module only)
if(WIN32 AND NOT UNIX)
file(GLOB DLLs *.dll)
file(GLOB ICOs *.ico)
install(FILES
${DLLs}
${ICOs}
DESTINATION ${target_library_install_dir})
endif(WIN32 AND NOT UNIX)