SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2005-2009 Hartmut Kaiser 00002 // 00003 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00005 00006 #include <boost/config.hpp> 00007 00008 #ifndef SAGA_AUTOLINK_LIB_NAME 00009 #error "Macro SAGA_AUTOLINK_LIB_NAME not set (internal error)" 00010 #endif 00011 00012 // enable auto-linking for supported platforms 00013 #if defined(BOOST_MSVC) \ 00014 || defined(__BORLANDC__) \ 00015 || (defined(__MWERKS__) && defined(_WIN32) && (__MWERKS__ >= 0x3000)) \ 00016 || (defined(__ICL) && defined(_MSC_EXTENSIONS) && (_MSC_VER >= 1200)) 00017 00018 #if defined(_DEBUG) 00019 #pragma comment(lib, SAGA_AUTOLINK_LIB_NAME "d" ".lib") 00020 #else 00021 #pragma comment(lib, SAGA_AUTOLINK_LIB_NAME ".lib") 00022 #endif 00023 00024 #endif 00025 00026 #undef SAGA_AUTOLINK_LIB_NAME 00027