EXCLUDE_FROM_DEFAULT_BUILD in MSVC breaks with dependencies
This issue was created automatically from an original [Mantis Issue](https://cmake.org/Bug/view.php?id=12379). Further discussion may take place here.
---
There won't be any dependency created for the executable to the library it must link to.
```
1>------ Skipped Build: Project: foo, Configuration: Debug Win32 ------
1>Project not selected to build for this solution configuration
2>------ Build started: Project: foobar, Configuration: Debug Win32 ------
2>Compiling...
2>foobar.c
2>Compiling manifest to resources...
2>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
2>Copyright (C) Microsoft Corporation. All rights reserved.
2>Linking...
2>LINK : fatal error LNK1104: cannot open file 'Debug\foo.lib'
2>Build log was saved at "file://c:\Users\Felix [^] Bruns\Documents\Visual Studio 2008\Projects\a'\foobar.dir\Debug\BuildLog.htm"
2>foobar - 1 error(s), 0 warning(s)
3>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 2 skipped ==========
```
issue