mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
Beginning CMake configuration for ZT
Only tested on Windows so far
This commit is contained in:
parent
af5d3a7f0b
commit
0b3b5f6174
111 changed files with 19586 additions and 36 deletions
|
@ -46,28 +46,7 @@
|
|||
#include <sys/socket.h>
|
||||
#endif /* Windows or not */
|
||||
|
||||
#if defined (_MSC_VER)
|
||||
#ifdef ZT_EXPORT
|
||||
#define ZT_SDK_API __declspec(dllexport)
|
||||
#else
|
||||
#define ZT_SDK_API __declspec(dllimport)
|
||||
#if !defined(ZT_SDK)
|
||||
#ifdef _DEBUG
|
||||
#ifdef _WIN64
|
||||
#pragma comment(lib, "ZeroTierOne_x64d.lib")
|
||||
#else
|
||||
#pragma comment(lib, "ZeroTierOne_x86d.lib")
|
||||
#endif
|
||||
#else
|
||||
#ifdef _WIN64
|
||||
#pragma comment(lib, "ZeroTierOne_x64.lib")
|
||||
#else
|
||||
#pragma comment(lib, "ZeroTierOne_x86.lib")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#ifndef ZT_SDK_API
|
||||
#define ZT_SDK_API
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue