mirror of
https://github.com/polybar/polybar.git
synced 2025-04-14 17:33:17 -04:00
refactor(cmake): Add to net-src in modules CMakeLists.
This commit is contained in:
parent
0fbd5367b5
commit
67835c9fb2
2 changed files with 5 additions and 2 deletions
|
@ -12,10 +12,8 @@ querylib(ENABLE_CURL "pkg-config" libcurl curl-libs curl-dirs)
|
|||
querylib(ENABLE_MPD "pkg-config" libmpdclient mpd-libs mpd-dirs)
|
||||
if(WITH_LIBNL)
|
||||
querylib(ENABLE_NETWORK "pkg-config" libnl-genl-3.0 net-libs net-dirs)
|
||||
list(APPEND net-src ../adapters/net_nl.cpp)
|
||||
else()
|
||||
querylib(ENABLE_NETWORK "cmake" Libiw net-libs net-dirs)
|
||||
list(APPEND net-src ../adapters/net_iw.cpp)
|
||||
endif()
|
||||
querylib(ENABLE_PULSEAUDIO "pkg-config" libpulse pulse-libs pulse-dirs)
|
||||
|
||||
|
|
|
@ -43,6 +43,11 @@ endif()
|
|||
|
||||
if(ENABLE_NETWORK)
|
||||
list(APPEND net-src ../adapters/net.cpp network.cpp)
|
||||
if(WITH_LIBNL)
|
||||
list(APPEND net-src ../adapters/net_nl.cpp)
|
||||
else()
|
||||
list(APPEND net-src ../adapters/net_iw.cpp)
|
||||
endif()
|
||||
make_library(polybar-modules-network
|
||||
MODULE
|
||||
SOURCES
|
||||
|
|
Loading…
Add table
Reference in a new issue