Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
qle
auto_link.hpp
Go to the documentation of this file.
1
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3
#ifndef quantext_autolink_hpp
4
#define quantext_autolink_hpp
5
6
#include <boost/config.hpp>
7
8
#ifdef _M_X64
9
#define QE_LIB_PLATFORM "-x64"
10
#else
11
#define QE_LIB_PLATFORM
12
#endif
13
14
/*** libraries to be linked ***/
15
16
// select thread opt:
17
#ifdef _MT
18
#define QE_LIB_THREAD_OPT "-mt"
19
#else
20
#define QE_LIB_THREAD_OPT
21
#endif
22
23
// select linkage opt:
24
#ifdef _DLL
25
#if defined(_DEBUG)
26
#define QE_LIB_RT_OPT "-gd"
27
#else
28
#define QE_LIB_RT_OPT
29
#endif
30
#else
31
#if defined(_DEBUG)
32
#define QE_LIB_RT_OPT "-sgd"
33
#else
34
#define QE_LIB_RT_OPT "-s"
35
#endif
36
#endif
37
38
#define QE_LIB_NAME "QuantExt"
QE_LIB_PLATFORM QE_LIB_THREAD_OPT QE_LIB_RT_OPT ".lib"
39
40
#pragma comment(lib, QE_LIB_NAME)
41
#ifdef BOOST_LIB_DIAGNOSTIC
42
#pragma message("Will (need to) link to lib file: "
QE_LIB_NAME)
43
#endif
44
45
#endif
Generated by
Doxygen
1.9.5