2009-12-05 21:04:31 +00:00
# vim: ts=4 sw=4 noet ai cindent syntax=cmake
2009-12-08 04:46:49 +00:00
if ( NOT CMAKE_BUILD_TYPE )
set ( CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
" C h o o s e t h e t y p e o f b u i l d , o p t i o n s a r e : N o n e D e b u g R e l e a s e R e l W i t h D e b I n f o M i n S i z e R e l . "
F O R C E )
endif ( NOT CMAKE_BUILD_TYPE )
# some extra debug flags
set ( CMAKE_C_FLAGS_DEBUG "-ggdb -Wall -W -Wextra -Wunused -Wdeclaration-after-statement -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Winline -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -std=c99 -pedantic -Werror" CACHE STRING "Flags used by the compiler during debug builds." FORCE )
set ( CMAKE_CXX_FLAGS_DEBUG "-ggdb -Wall -W -Wextra -Wunused -std=c++0x -pedantic -Werror" CACHE STRING "Flags used by the compiler during debug builds." FORCE )
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
set ( DEBUG true )
endif ( CMAKE_BUILD_TYPE MATCHES "Debug" )
option ( RELEASE "Build release package" false )
mark_as_advanced ( RELEASE )
2009-12-05 21:04:31 +00:00
# Some standard options
set ( SYSTEM_CONFIG_FILE "/etc/conky/conky.conf" CACHE STRING "Default system-wide Conky configuration file" )
# use FORCE below to make sure this changes when CMAKE_INSTALL_PREFIX is modified
set ( PACKAGE_LIBRARY_DIR "${CMAKE_INSTALL_PREFIX}/lib/conky" CACHE STRING "Package library path (where Lua bindings are installed" FORCE )
set ( DEFAULTNETDEV "eth0" CACHE STRING "Default networkdevice" )
set ( CONFIG_FILE "$HOME/.conkyrc" CACHE STRING "Configfile of the user" )
set ( MAX_SPECIALS_DEFAULT "512" CACHE STRING "Default maximum number of special things, e.g. fonts, offsets, aligns, etc." )
set ( MAX_USER_TEXT_DEFAULT "16384" CACHE STRING "Default maximum size of config TEXT buffer, i.e. below TEXT line." )
set ( DEFAULT_TEXT_BUFFER_SIZE "256" CACHE STRING "Default size used for temporary, static text buffers" )
set ( MAX_NET_INTERFACES "16" CACHE STRING "Maximum number of network devices" )
2009-12-06 19:43:12 +00:00
# Platform specific options
2009-12-08 04:46:49 +00:00
# Linux only
if ( OS_LINUX )
2009-12-06 19:43:12 +00:00
option ( BUILD_PORT_MONITORS "Build TCP portmon support" true )
2009-12-08 04:46:49 +00:00
option ( BUILD_IBM "Support for IBM/Lenovo notebooks" true )
option ( BUILD_HDDTEMP "Support for hddtemp" true )
# nvidia may also work on FreeBSD, not sure
option ( BUILD_NVIDIA "Enable nvidia support" false )
else ( OS_LINUX )
set ( BUILD_PORT_MONITORS false )
set ( BUILD_IBM false )
set ( BUILD_HDDTEMP false )
set ( BUILD_NVIDIA false )
endif ( OS_LINUX )
2009-12-06 19:43:12 +00:00
2009-12-05 21:04:31 +00:00
# Optional features etc
option ( BUILD_X11 "Build X11 support" true )
if ( BUILD_X11 )
option ( OWN_WINDOW "Enable own_window support" true )
option ( BUILD_XDAMAGE "Build Xdamage support" true )
option ( BUILD_XDBE "Build Xdbe (double-buffer) support" true )
option ( BUILD_XFT "Build Xft (freetype fonts) support" true )
endif ( BUILD_X11 )
2009-12-06 02:45:26 +00:00
option ( BUILD_LUA "Build Lua support" true )
2009-12-06 19:30:06 +00:00
2009-12-08 04:46:49 +00:00
option ( BUILD_AUDACIOUS "Build audacious (music player) support" false )
2009-12-06 19:43:12 +00:00
if ( BUILD_AUDACIOUS )
2009-12-08 04:46:49 +00:00
option ( BUILD_AUDACIOUS_LEGACY "Use legacy audacious (music player) support" false )
2009-12-06 19:43:12 +00:00
else ( BUILD_AUDACIOUS )
set ( BUILD_AUDACIOUS_LEGACY false )
endif ( BUILD_AUDACIOUS )
2009-12-06 19:30:06 +00:00
2009-12-08 04:46:49 +00:00
option ( BUILD_BMPX "Build BMPx (music player) support" false )
option ( BUILD_MPD "Enable if you want MPD (music player) support" true )
option ( BUILD_MOC "Enable if you want MOC (music player) support" true )
option ( BUILD_XMMS2 "Enable if you want XMMS2 (music player) support" false )
option ( BUILD_EVE "Enable if you want Eve-Online skill monitoring support" false )
option ( BUILD_CURL "Enable if you want Curl support" false )
option ( BUILD_RSS "Enable if you want RSS support" false )
option ( BUILD_WEATHER_METAR "Enable METAR weather support" false )
option ( BUILD_WEATHER_XOAP "Enable XOAP weather support" false )