forked from louipc/opennurbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexamples_linking_pragmas.h
67 lines (43 loc) · 1.55 KB
/
examples_linking_pragmas.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#if defined(_MSC_VER)
// This file is specific to Micrsoft's compiler.
// It contains linking pragmas for building the opennurbs examples.
#pragma once
#if defined(ON_DLL_EXPORTS)
// If you get the following error, your compiler settings
// indicate you are building opennurbs as a DLL. This file
// is used for linking with opennurbs.
#error This file contains linking pragmas for using opennurbs.
#endif
#if !defined(ON_MSC_SOLUTION_DIR)
#define ON_MSC_SOLUTION_DIR ".."
#endif
#if !defined(ON_MSC_LIB_DIR)
#if defined(WIN64)
// x64 (64 bit) static libraries
#if defined(NDEBUG)
// Release x64 (64 bit) libs
#define ON_MSC_LIB_DIR "x64/Release"
#else // _DEBUG
// Debug x64 (64 bit) libs
#define ON_MSC_LIB_DIR "x64/Debug"
#endif // NDEBUG else _DEBUG
#else // WIN32
// x86 (32 bit) static libraries
#if defined(NDEBUG)
// Release x86 (32 bit) libs
#define ON_MSC_LIB_DIR "Release"
#else // _DEBUG
// Debug x86 (32 bit) libs
#define ON_MSC_LIB_DIR "Debug"
#endif // NDEBUG else _DEBUG
#endif // WIN64 else WIN32
#endif // !defined(ON_MSC_LIB_DIR)
#if defined(ON_DLL_IMPORTS)
#pragma message( " --- dynamically linking opennurbs (DLL)." )
#pragma comment(lib, "\"" ON_MSC_SOLUTION_DIR "/" ON_MSC_LIB_DIR "/" "opennurbs.lib" "\"")
#else
#pragma message( " --- statically linking opennurbs." )
#pragma comment(lib, "\"" ON_MSC_SOLUTION_DIR "/" ON_MSC_LIB_DIR "/" "zlib.lib" "\"")
#pragma comment(lib, "\"" ON_MSC_SOLUTION_DIR "/" ON_MSC_LIB_DIR "/" "opennurbs_staticlib.lib" "\"")
#endif
#endif