QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_staticlib_linking_pragmas.h
Go to the documentation of this file.
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_IMPORTS) || defined(ON_DLL_EXPORTS)
9// If you get the following error, your compiler settings
10// indicate you want to use opennurbs as a DLL but you
11// are attempting to link in static libraries.
12#error This file contains STATIC LIBRARY linking pragmas.
13#endif
14
15
16#if defined(WIN64)
17
18// x64 (64 bit) static libraries
19
20#if defined(NDEBUG)
21
22// Release x64 (64 bit) libs
23#pragma message( " --- Opennurbs examples Release x64 (64 bit) build." )
24#pragma comment(lib, "../zlib/x64/Release/zlibx64.lib")
25#pragma comment(lib, "../x64/ReleaseStaticLib/opennurbsx64_static.lib")
26
27#else // _DEBUG
28
29// Debug x64 (64 bit) libs
30#pragma message( " --- Opennurbs examples Debug x64 (64 bit) build." )
31#pragma comment(lib, "../zlib/x64/Debug/zlibx64_d.lib")
32#pragma comment(lib, "../x64/DebugStaticLib/opennurbsx64_staticd.lib")
33
34#endif // NDEBUG else _DEBUG
35
36#else // WIN32
37
38// x86 (32 bit) static libraries
39
40#if defined(NDEBUG)
41
42// Release x86 (32 bit) libs
43#pragma message( " --- Opennurbs examples Release x86 (32 bit) build." )
44#pragma comment(lib, "../zlib/Release/zlib.lib")
45#pragma comment(lib, "../ReleaseStaticLib/opennurbs_static.lib")
46
47#else // _DEBUG
48
49// Debug x86 (32 bit) libs
50#pragma message( " --- Opennurbs examples Debug x86 (32 bit) build." )
51#pragma comment(lib, "../zlib/Debug/zlib_d.lib")
52#pragma comment(lib, "../DebugStaticLib/opennurbs_staticd.lib")
53
54#endif // NDEBUG else _DEBUG
55
56#endif // WIN64 else WIN32
57
58#endif