2009-11-26 19:25:32 +00:00
|
|
|
# vim: ts=4 sw=4 noet ai cindent syntax=cmake
|
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
|
|
project(conky)
|
|
|
|
|
|
|
|
# This is the directory for our custom CMake modules.
|
2009-12-09 23:56:07 +00:00
|
|
|
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
2009-11-26 19:25:32 +00:00
|
|
|
|
2009-12-08 04:46:49 +00:00
|
|
|
# 'core' CMake stuff
|
|
|
|
include(Conky)
|
2009-11-26 19:25:32 +00:00
|
|
|
|
2009-12-05 20:00:10 +00:00
|
|
|
# Handle build options
|
|
|
|
include(ConkyBuildOptions)
|
|
|
|
|
|
|
|
# Do platform checks
|
|
|
|
include(ConkyPlatformChecks)
|
|
|
|
|
2009-12-08 04:46:49 +00:00
|
|
|
# CPack module for installation tasks
|
|
|
|
include(ConkyCPackSetup)
|
2009-11-26 19:25:32 +00:00
|
|
|
|
2009-12-08 05:16:11 +00:00
|
|
|
# setup our configuration headers
|
2009-12-09 23:56:07 +00:00
|
|
|
configure_file(${CMAKE_MODULE_PATH}/config.h.in ${CMAKE_BINARY_DIR}/config.h)
|
|
|
|
configure_file(${CMAKE_MODULE_PATH}/build.h.in ${CMAKE_BINARY_DIR}/build.h)
|
2009-12-08 05:16:11 +00:00
|
|
|
|
2009-12-08 04:46:49 +00:00
|
|
|
# Finally, add some code
|
2009-11-26 19:25:32 +00:00
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(lua)
|
|
|
|
add_subdirectory(doc)
|
|
|
|
|
2009-12-18 03:46:26 +00:00
|
|
|
# Install README into share dir (is this even the right spot? need to revisit
|
|
|
|
# this at some point)
|
|
|
|
install(FILES
|
|
|
|
README
|
|
|
|
DESTINATION share/doc/conky
|
|
|
|
)
|
|
|
|
|