cmLocalGenerator: Remove AddCompileDefinitions method

This method offers the same definitions as `GetTargetDefines` except
that it excludes the "export" macro on shared libraries.  Update call
sites to use `GetTargetDefines` instead.  Some of them were incorrectly
excluding the export macro.
Status Job ID Name Coverage
  External
passed cdash

failed cmake-dash3win7-windows-release-ninja

01:00:54

passed cmake-hythloth-linux-debug-makefiles+sphinx

passed cmake-hythloth-linux-release-lint-iwyu-tidy

passed cmake-moonshade-osx-debug-ninja

00:10:21

passed cmake-moonshade-osx-release-makefiles

00:13:13

passed cmake-terfin-windows-release-vs2017

00:33:59

passed ghostflow-branch-check-master

passed ghostflow-commit-check

passed ghostflow-stager

passed cmake-hythloth-linux-debug-makefiles+sphinx

00:52:51

passed cmake-hythloth-linux-release-lint-iwyu-tidy

00:05:56

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager

passed ghostflow-stager