1 / 9

Cppunit demo

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

kemp
Download Presentation

Cppunit demo

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  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. Project/Settings..., Pre-Link step 增加 Pre-Link Command: • copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)

  4. Project/Settings..., Post-Build step 增加 Post-build Command: • copy e:\cppunit\lib\cppunitd_dll.dll $(OutDir)

  5. Tools/Options…directions, 在show directions for 中选择 include files, 添加目录:E:\cppunit\include, E:\cppunit\include\cppunit. 如图:

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

More Related