examples_linking_pragmas.h
Go to the documentation of this file.
00001 #if defined(_MSC_VER)
00002 
00003 // This file is specific to Micrsoft's compiler.
00004 // It contains linking pragmas for building the opennurbs examples.
00005 
00006 #pragma once
00007 
00008 #if defined(ON_DLL_EXPORTS)
00009 // If you get the following error, your compiler settings
00010 // indicate you are building opennurbs as a DLL. This file
00011 // is used for linking with opennurbs.
00012 #error This file contains linking pragmas for using opennurbs.
00013 #endif
00014 
00015 #if !defined(ON_MSC_SOLUTION_DIR)
00016 #define ON_MSC_SOLUTION_DIR ".."
00017 #endif
00018 
00019 #if !defined(ON_MSC_LIB_DIR)
00020 
00021 #if defined(WIN64)
00022 
00023 // x64 (64 bit) static libraries
00024 
00025 #if defined(NDEBUG)
00026 
00027 // Release x64 (64 bit) libs
00028 #define ON_MSC_LIB_DIR "x64/Release"
00029 
00030 #else // _DEBUG
00031 
00032 // Debug x64 (64 bit) libs
00033 #define ON_MSC_LIB_DIR "x64/Debug"
00034 
00035 #endif // NDEBUG else _DEBUG
00036 
00037 #else // WIN32
00038 
00039 // x86 (32 bit) static libraries
00040 
00041 #if defined(NDEBUG)
00042 
00043 // Release x86 (32 bit) libs
00044 #define ON_MSC_LIB_DIR "Release"
00045 
00046 #else // _DEBUG
00047 
00048 // Debug x86 (32 bit) libs
00049 #define ON_MSC_LIB_DIR "Debug"
00050 
00051 #endif // NDEBUG else _DEBUG
00052 
00053 #endif // WIN64 else WIN32
00054 
00055 #endif //  !defined(ON_MSC_LIB_DIR)
00056 
00057 #if defined(ON_DLL_IMPORTS)
00058 #pragma message( " --- dynamically linking opennurbs (DLL)." )
00059 #pragma comment(lib, "\"" ON_MSC_SOLUTION_DIR "/" ON_MSC_LIB_DIR "/" "opennurbs.lib" "\"")
00060 #else
00061 #pragma message( " --- statically linking opennurbs." )
00062 #pragma comment(lib, "\"" ON_MSC_SOLUTION_DIR "/" ON_MSC_LIB_DIR "/" "zlib.lib" "\"")
00063 #pragma comment(lib, "\"" ON_MSC_SOLUTION_DIR "/" ON_MSC_LIB_DIR "/" "opennurbs_staticlib.lib" "\"")
00064 #endif
00065 
00066 
00067 #endif


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:23:36