add a cpp file for import libs

This commit is contained in:
Asuka 2019-06-23 21:28:51 +08:00
parent aae1982ad2
commit 0d67d61c22
2 changed files with 29 additions and 0 deletions

7
3rdParty/ReadMe.md vendored Normal file
View file

@ -0,0 +1,7 @@
3rd party liibraries.
Make sure every library folder contains it's required header files and compiled libs,
which can be include like:
#include "pthreads4w/pthread.h"
and can be linked like in ImportLib.cpp, like:
#pragma comment(lib, "../3rdParty/pthreads4w/libpthreadVCE3d.lib")

22
GPCS4/ImportLibs.cpp Normal file
View file

@ -0,0 +1,22 @@
#include "GPCS4Config.h"
// links to static libs
//
// I don't do this in property settings page
// because I found it doesn't support relative path.
// e.g. "pthreads4w/libpthreadVCE3d.lib"
// thus I'll have to add a lib directory in that settings page
// every time I add a new lib. that's awful.
#ifdef GPCS4_WINDOWS
#ifdef _DEBUG
#pragma comment(lib, "../3rdParty/pthreads4w/libpthreadVCE3d.lib")
#else
#pragma comment(lib, "../3rdParty/pthreads4w/libpthreadVCE3.lib")
#endif //_DEBUG
#endif //GPCS4_WINDOWS