opennurbs_public_examples.h
1 /*
2 // Copyright (c) 1993-2017 Robert McNeel & Associates. All rights reserved.
3 // OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
4 // McNeel & Assoicates.
5 //
6 // THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
7 // ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
8 // MERCHANTABILITY ARE HEREBY DISCLAIMED.
9 //
10 // For complete openNURBS copyright information see <http://www.opennurbs.org>.
11 //
12 ////////////////////////////////////////////////////////////////
13 */
14 
15 #if !defined(OPENNURBS_PUBLIC_EXAMPLES_INC_)
16 #define OPENNURBS_PUBLIC_EXAMPLES_INC_
17 
18 // If "OPENNURBS_IMPORTS" is defined, then the example programs
19 // dynamically link with opennurbs_public.dll (Windows DLL).
20 //
21 // Otherwise, the example programs statically link with opennurbs_public_staticlib.lib.
22 
23 //#define OPENNURBS_IMPORTS
24 
25 #include "opennurbs_public.h"
26 
27 #if defined(ON_COMPILER_MSC)
28 // Microsoft Compiler linking pragmas
29 
30 #if defined(OPENNURBS_EXPORTS) || defined(ON_COMPILING_OPENNURBS)
31 // If you get the following error, your compiler settings
32 // indicate you are building an opennurbs library.
33 // This file is used for linking with opennurbs libraries
34 // that have been previously built.
35 #error This file contains linking pragmas for using the opennurbs library.
36 #endif
37 
38 #if defined(OPENNURBS_IMPORTS)
39 #pragma message( " --- dynamically linking opennurbs (DLL)." )
40 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "opennurbs_public.lib" "\"")
41 #else
42 #pragma message( " --- statically linking opennurbs." )
43 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "opennurbs_public_staticlib.lib" "\"")
44 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "zlib.lib" "\"")
45 #pragma comment(lib, "\"" OPENNURBS_OUTPUT_DIR "/" "freetype263_staticlib.lib" "\"")
46 #pragma comment(lib, "rpcrt4.lib")
47 #pragma comment(lib, "shlwapi.lib")
48 #endif
49 
50 #endif
51 
52 #endif