Download presentation
Presentation is loading. Please wait.
Published byJean-Paul Durand Modified over 5 years ago
1
Cppunit demo Download cppunit from 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
2
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 如下图所示
4
Project/Settings..., Pre-Link step 增加 Pre-Link Command:
copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)
6
Project/Settings..., Post-Build step 增加 Post-build Command:
copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)
7
Tools/Options…directions, 在show directions for 中选择 include files, 添加目录:E:\cppunit\include, E:\cppunit\include\cppunit. 如图:
9
完成上述步骤后,点击Build-rebuild all.
输出结果为:如图
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.