On Fri, Jul 17, 2009 at 7:49 AM, Vincent Bourdier <
[email protected]> wrote:

> Hi all,
>
> For our osg-based project, I am searching for unit tests.
>
> Visual Studio implement them only in managed c++, so I am looking at
> different libs to do that.
> I just tried googleTest, but it needs a /MT compilation instead of osg
> needs a /MD ...


Just modify the project files that come with gtest to build with /MD &
/MDd.  It should work fine.

1. Open up solution file
2. Use CTRL+Click to select all gtest projects
3. Right click and go to Properties
4. Expand "Configuration Properties"->"C/C++"->"Code Generation"
5. While modifying Configuration "Active(Release)" choose "Multi-threaded
DLL (/MD)" from the Runtime Library option.
6. Switch Configuration to "Active(Debug)" and choose "Multi-threaded Debug
DLL (/MDd)" from the Runtime Library option.
7. Build

-- 
Philip Lowman
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to