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