mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Portmon CMake build support.
This commit is contained in:
parent
0406000351
commit
134439cbfa
@ -23,3 +23,10 @@ if(BUILD_X11)
|
||||
endif(BUILD_X11)
|
||||
|
||||
option(BUILD_LUA "Build Lua support" true)
|
||||
|
||||
|
||||
# Platform specific options
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
option(BUILD_PORT_MONITORS "Build TCP portmon support" true)
|
||||
endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
|
||||
|
@ -60,3 +60,14 @@ if(BUILD_LUA)
|
||||
set(conky_libs ${conky_libs} ${LUA_LIBRARIES})
|
||||
set(conky_includes ${conky_includes} ${LUA_INCLUDE_DIRS})
|
||||
endif(BUILD_LUA)
|
||||
|
||||
if(BUILD_PORT_MONITORS)
|
||||
set(WANT_GLIB true)
|
||||
endif(BUILD_PORT_MONITORS)
|
||||
|
||||
if(WANT_GLIB)
|
||||
pkg_check_modules(GLIB REQUIRED glib-2.0)
|
||||
set(conky_libs ${conky_libs} ${GLIB_LIBRARIES})
|
||||
set(conky_includes ${conky_includes} ${GLIB_INCLUDE_DIRS})
|
||||
endif(WANT_GLIB)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user