Linux build with CMake

This commit is contained in:
Grant Limberg 2019-06-21 15:16:20 -07:00
commit 4d599e2f9f
3 changed files with 60 additions and 14 deletions

View file

@ -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})