[CMake] In MSVC, how can I link my exe with my library with the same configuration (release, minsizerel) separately

2009-11-10 Thread Meng Zhang
Dear CMakers, Sorry for disturbing. Since nobody gave the answer, I just rephrased the title of my question. I am a beginner of CMake. My problem is that in MSVC, I have two projects: one is executable project A, and the other is library project B. A depends on B and A has to link B. I want A

[CMake] How can I link to my MinSizeRel project in msvc

2009-11-09 Thread Meng Zhang
Dear CMakers, I am a beginner of CMake. My problem is that in MSVC, I have two projects: one is executable project A, and the other is library project B. A depends on B and A has to link B. I want A to link the corresponding B separately under different configurations. For example, if I build Rel