Add CppUnit.progen. Add POCO_NO_AUTOMATIC_LIBS

This commit is contained in:
Francis ANDRE
2018-05-19 16:16:22 +02:00
parent 904b0061eb
commit 91a4cf3b44
3 changed files with 38 additions and 12 deletions

View File

@@ -6,6 +6,7 @@
#ifndef CppUnit_CppUnit_INCLUDED
#define CppUnit_CppUnit_INCLUDED
#include "Poco/Foundation.h"
//
// Ensure that POCO_DLL is default unless POCO_STATIC is defined
@@ -42,6 +43,15 @@
#endif
#endif
//
// Automatically link Data library.
//
#if defined(_MSC_VER) && !defined(POCO_NO_AUTOMATIC_LIBS)
#if !defined(CppUnit_EXPORTS)
#pragma comment(lib, "PocoCppUnit" POCO_LIB_SUFFIX)
#endif
#endif
// Turn off some annoying warnings
#ifdef _MSC_VER