2009-11-26 19:25:32 +00:00
|
|
|
# vim: ts=4 sw=4 noet ai cindent syntax=cmake
|
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
include_directories(${conky_includes})
|
2009-11-26 19:25:32 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
set(conky_sources colours.c combine.c common.c conky.c core.c diskio.c
|
|
|
|
entropy.c exec.c fs.c mail.c mixer.c net_stat.c template.c timed_thread.c
|
|
|
|
mboxscan.c read_tcp.c scroll.c specials.c tailhead.c temphelper.c
|
|
|
|
text_object.c timeinfo.c top.c algebra.c proc.c user.c)
|
|
|
|
|
2009-12-06 02:45:26 +00:00
|
|
|
# Platform specific sources
|
2009-12-05 20:00:10 +00:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
2009-12-06 02:45:26 +00:00
|
|
|
set(linux linux.c linux.h users.c users.h sony.c sony.h i8k.c i8k.h)
|
|
|
|
set(optional_sources ${optional_sources} ${linux})
|
2009-12-05 20:00:10 +00:00
|
|
|
endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
|
|
2009-12-06 02:45:26 +00:00
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
|
|
set(freebsd freebsd.c freebsd.h bsdapm.c bsdapm.h)
|
|
|
|
set(optional_sources ${optional_sources} ${freebsd})
|
|
|
|
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
|
|
|
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "Solaris")
|
|
|
|
set(solaris solaris.c)
|
|
|
|
set(optional_sources ${optional_sources} ${solaris})
|
|
|
|
endif(CMAKE_SYSTEM_NAME MATCHES "Solaris")
|
|
|
|
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
|
|
|
set(netbsd netbsd.c netbsd.h)
|
|
|
|
set(optional_sources ${optional_sources} ${netbsd})
|
|
|
|
endif(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
|
|
|
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
|
|
|
set(openbsd openbsd.c openbsd.h bsdapm.c bsdapm.h)
|
|
|
|
set(optional_sources ${optional_sources} ${openbsd})
|
|
|
|
endif(CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
|
|
|
|
|
|
|
|
|
|
|
|
# Optional sources
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_AUDACIOUS)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(audacious audacious.c audacious.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${audacious})
|
|
|
|
endif(BUILD_AUDACIOUS)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_BMPX)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(bmpx bmpx.c bmpx.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${bmpx})
|
|
|
|
endif(BUILD_BMPX)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_IBM)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(ibm ibm.c ibm.h smapi.c smapi.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${ibm})
|
|
|
|
endif(BUILD_IBM)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_MPD)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(mpd mpd.c mpd.h libmpdclient.c libmpdclient.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${mpd})
|
|
|
|
endif(BUILD_MPD)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_MOC)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(moc moc.c moc.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${moc})
|
|
|
|
endif(BUILD_MOC)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_XMMS2)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(xmms2 xmms2.c xmms2.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${xmms2})
|
|
|
|
endif(BUILD_XMMS2)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_PORT_MONITORS)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(port_monitors libtcp-portmon.c libtcp-portmon.h tcp-portmon.c tcp-portmon.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${port_monitors})
|
|
|
|
endif(BUILD_PORT_MONITORS)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_X11)
|
|
|
|
set(x11 x11.c x11.h fonts.c fonts.h)
|
|
|
|
set(optional_sources ${optional_sources} ${x11})
|
|
|
|
endif(BUILD_X11)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_HDDTEMP)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(hddtemp hddtemp.c hddtemp.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${hddtemp})
|
|
|
|
endif(BUILD_HDDTEMP)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_EVE)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(eve eve.c eve.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${eve})
|
|
|
|
endif(BUILD_EVE)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_CURL)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(ccurl_thread ccurl_thread.c ccurl_thread.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${ccurl_thread})
|
|
|
|
endif(BUILD_CURL)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_RSS)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(rss rss.c rss.h prss.c prss.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${rss})
|
|
|
|
endif(BUILD_RSS)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_WEATHER)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(weather weather.c weather.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${weather})
|
|
|
|
endif(BUILD_WEATHER)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_LUA)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(lua llua.c llua.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${lua})
|
|
|
|
endif(BUILD_LUA)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_NVIDIA)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(nvidia nvidia.c nvidia.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${nvidia})
|
|
|
|
endif(BUILD_NVIDIA)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_IMLIB2)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(imlib2 imlib2.c imlib2.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${imlib2})
|
|
|
|
endif(BUILD_IMLIB2)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_APCUPSD)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(apcupsd apcupsd.c apcupsd.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${apcupsd})
|
|
|
|
endif(BUILD_APCUPSD)
|
2009-12-06 02:45:26 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
if(BUILD_ICONV)
|
2009-12-06 02:45:26 +00:00
|
|
|
set(iconv iconv_tools.c iconv_tools.h)
|
2009-12-05 20:00:10 +00:00
|
|
|
set(optional_sources ${optional_sources} ${iconv})
|
|
|
|
endif(BUILD_ICONV)
|
|
|
|
|
|
|
|
add_executable(conky ${conky_sources} ${optional_sources})
|
|
|
|
|
|
|
|
target_link_libraries(conky ${conky_libs})
|