mirror of
https://github.com/Inori/GPCS4.git
synced 2024-06-02 11:28:07 -04:00
add a cpp file for import libs
This commit is contained in:
parent
aae1982ad2
commit
0d67d61c22
7
3rdParty/ReadMe.md
vendored
Normal file
7
3rdParty/ReadMe.md
vendored
Normal 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
22
GPCS4/ImportLibs.cpp
Normal 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
|
Loading…
Reference in a new issue