90 likes | 289 Views
Cppunit demo. Download cppunit from http://cppunit.sourceforge.net/cppunit-wiki VC 6.0 需完全安装 Open the CPPUNIT$srcCppUnitLibraries.dsw workspace in VC++ In the 'Build' menu, select 'Batch Build ...' In the batch build dialog, select all projects and press the Build button
E N D
Cppunit demo • Download cppunit from http://cppunit.sourceforge.net/cppunit-wiki • VC 6.0需完全安装 • Open the CPPUNIT$\src\CppUnitLibraries.dsw workspace in VC++ • In the 'Build' menu, select 'Batch Build...' • In the batch build dialog, select all projects and press the Build button • The resulting libraries can be found in the $cppunit$\lib directory
New project • 假设cppunit在E:\cppunit. • 从E:\finderTest中打开finderTest.dsw • 修改 Project/Settings,连接cppunitd_dll.lib • Project/Settings..., Link, General, 在Object/Library Modules 中写入E:\cppunit\lib\cppunitd_dll.lib • 如下图所示
Project/Settings..., Pre-Link step 增加 Pre-Link Command: • copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)
Project/Settings..., Post-Build step 增加 Post-build Command: • copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)
Tools/Options…directions, 在show directions for 中选择 include files, 添加目录:E:\cppunit\include, E:\cppunit\include\cppunit. 如图:
完成上述步骤后,点击Build-rebuild all. • 输出结果为:如图