- Create your own project for UnitTests
- place the cppunitd.lib and cppunit.lib somewhere in your project folder diretory
- Go to the projet properties (DEBUG)
- Under Configuration Properties -> C/C++
- Optimization -> Optimization Disabled (/Od)
- Preprocessor -> Preprocessor Definitions : WIN32;_DEBUG;_WINDOWS;
- Under Configuration Properties -> Linker
- General -> Additional Library Dependencies: add the path to the cppunitd.lib
- Input -> Additional Dependencies: add "cppunitd.lib"
- Optimization: I set everything to "default"
- Under Configuration Properties -> C/C++
These are the settings that worked for me.