examples_linking_pragmas.h
1 #if defined(ON_COMPILER_MSC)
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(OPENNURBS_EXPORTS) || defined(ON_COMPILING_OPENNURBS)
9 // If you get the following error, your compiler settings
10 // indicate you are building an opennurbs library.
11 // This file is used for linking with opennurbs libraries
12 // that have been previously built.
13 #error This file contains linking pragmas for using the opennurbs library.
14 #endif
15 
16 #if defined(OPENNURBS_IMPORTS)
17 #pragma message( " --- dynamically linking opennurbs (DLL)." )
18 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "opennurbs_public.lib" "\"")
19 #else
20 #pragma message( " --- statically linking opennurbs." )
21 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "opennurbs_public_staticlib.lib" "\"")
22 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "zlib.lib" "\"")
23 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "freetype263.lib" "\"")
24 #pragma comment(lib, "rpcrt4.lib")
25 #pragma comment(lib, "shlwapi.lib")
26 #endif
27 
28 #endif