mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
Linux build with CMake
This commit is contained in:
parent
d3b33e5512
commit
4d599e2f9f
3 changed files with 60 additions and 14 deletions
|
@ -41,10 +41,10 @@ elseif(UNIX)
|
|||
set(headers ${headers} freebsd_getifmaddrs.h)
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
|
||||
if(CMAKE_SYSTEM_NAME EQUAL "Linux")
|
||||
set(src ${src} LinuxEthernetTap.cpp)
|
||||
set(headers ${headers} LinuxEthernetTap.hpp)
|
||||
endif(CMAKE_SYSTEM_NAME EQUAL "Linux")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
set(src ${src} LinuxEthernetTap.cpp LinuxNetLink.cpp)
|
||||
set(headers ${headers} LinuxEthernetTap.hpp LinuxNetLink.hpp)
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
endif(WIN32)
|
||||
|
||||
add_library(${PROJECT_NAME} STATIC ${src} ${headers})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue