Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cppunit demo Download cppunit from VC 6.0 需完全安装

Similar presentations


Presentation on theme: "Cppunit demo Download cppunit from VC 6.0 需完全安装"— Presentation transcript:

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 如下图所示

3

4 Project/Settings..., Pre-Link step 增加 Pre-Link Command:
copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)

5

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. 如图:

8

9 完成上述步骤后,点击Build-rebuild all.
输出结果为:如图


Download ppt "Cppunit demo Download cppunit from VC 6.0 需完全安装"

Similar presentations


Ads by Google