1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00

Portmon CMake build support.

This commit is contained in:
Brenden Matthews 2009-12-06 11:30:06 -08:00
parent 0406000351
commit 134439cbfa
2 changed files with 18 additions and 0 deletions

View File

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

View File

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