2008-06-23 13:31:18 +02:00
|
|
|
set(PROJECT_AWE_NAME awesome)
|
2008-06-22 17:00:40 +02:00
|
|
|
|
2008-06-23 23:07:28 +02:00
|
|
|
# If ${SOURCE_DIR} is a git repository VERSION is set to
|
2008-08-29 11:35:34 +02:00
|
|
|
# `git describe` later.
|
|
|
|
set(VERSION devel)
|
2008-06-16 08:44:12 +02:00
|
|
|
|
2013-10-12 18:48:49 +02:00
|
|
|
set(CODENAME "The Fox")
|
2008-06-22 17:00:40 +02:00
|
|
|
|
2008-07-10 03:59:43 +02:00
|
|
|
project(${PROJECT_AWE_NAME} C)
|
2008-06-19 04:41:46 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
set(CMAKE_BUILD_TYPE RELEASE)
|
2008-06-16 08:44:12 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
option(WITH_DBUS "build with D-BUS" ON)
|
|
|
|
option(GENERATE_MANPAGES "generate manpages" ON)
|
2009-12-29 01:29:42 +01:00
|
|
|
option(COMPRESS_MANPAGES "compress manpages" ON)
|
2012-11-19 14:57:47 +01:00
|
|
|
option(GENERATE_DOC "generate API documentation" ON)
|
2008-06-20 12:15:43 +02:00
|
|
|
|
2009-04-27 12:06:24 +02:00
|
|
|
# {{{ Endianness
|
|
|
|
include(TestBigEndian)
|
|
|
|
TEST_BIG_ENDIAN(AWESOME_IS_BIG_ENDIAN)
|
|
|
|
# }}}
|
|
|
|
|
2008-06-20 18:49:58 +02:00
|
|
|
# {{{ Find external utilities
|
2008-07-18 22:24:05 +02:00
|
|
|
macro(a_find_program var prg req)
|
|
|
|
set(required ${req})
|
|
|
|
find_program(${var} ${prg})
|
|
|
|
if(NOT ${var})
|
|
|
|
message(STATUS "${prg} not found.")
|
|
|
|
if(required)
|
|
|
|
message(FATAL_ERROR "${prg} is required to build awesome")
|
|
|
|
endif()
|
|
|
|
else()
|
|
|
|
message(STATUS "${prg} -> ${${var}}")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
a_find_program(GIT_EXECUTABLE git FALSE)
|
2008-06-20 18:01:42 +02:00
|
|
|
# programs needed for man pages
|
2008-07-18 22:24:05 +02:00
|
|
|
a_find_program(ASCIIDOC_EXECUTABLE asciidoc FALSE)
|
|
|
|
a_find_program(XMLTO_EXECUTABLE xmlto FALSE)
|
|
|
|
a_find_program(GZIP_EXECUTABLE gzip FALSE)
|
2008-06-23 16:29:51 +02:00
|
|
|
# lua documentation
|
2013-09-19 17:05:20 +02:00
|
|
|
a_find_program(LDOC_EXECUTABLE ldoc FALSE)
|
|
|
|
if(NOT LDOC_EXECUTABLE)
|
|
|
|
a_find_program(LDOC_EXECUTABLE ldoc.lua FALSE)
|
|
|
|
endif()
|
2009-05-16 16:27:00 +02:00
|
|
|
# theme graphics
|
|
|
|
a_find_program(CONVERT_EXECUTABLE convert TRUE)
|
2008-06-20 18:01:42 +02:00
|
|
|
# pkg-config
|
2008-06-23 13:31:18 +02:00
|
|
|
include(FindPkgConfig)
|
2014-09-07 19:33:18 +02:00
|
|
|
# lua
|
|
|
|
include(FindLua)
|
2008-06-20 18:01:42 +02:00
|
|
|
# }}}
|
|
|
|
|
2008-06-25 03:00:12 +02:00
|
|
|
# {{{ Check if documentation can be build
|
2008-06-23 13:31:18 +02:00
|
|
|
if(GENERATE_MANPAGES)
|
2009-12-28 10:43:52 +01:00
|
|
|
if(NOT ASCIIDOC_EXECUTABLE OR NOT XMLTO_EXECUTABLE OR (COMPRESS_MANPAGES AND NOT GZIP_EXECUTABLE))
|
2008-06-23 13:31:18 +02:00
|
|
|
if(NOT ASCIIDOC_EXECUTABLE)
|
2008-06-20 18:49:58 +02:00
|
|
|
SET(missing "asciidoc")
|
2008-06-23 13:31:18 +02:00
|
|
|
endif()
|
|
|
|
if(NOT XMLTO_EXECUTABLE)
|
2008-06-20 18:49:58 +02:00
|
|
|
SET(missing ${missing} " xmlto")
|
2008-06-23 13:31:18 +02:00
|
|
|
endif()
|
2009-12-28 10:43:52 +01:00
|
|
|
if(COMPRESS_MANPAGES AND NOT GZIP_EXECUTABLE)
|
2008-06-20 18:49:58 +02:00
|
|
|
SET(missing ${missing} " gzip")
|
2008-06-23 13:31:18 +02:00
|
|
|
endif()
|
2008-06-20 18:49:58 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
message(STATUS "Not generating manpages. Missing: " ${missing})
|
|
|
|
set(GENERATE_MANPAGES OFF)
|
|
|
|
endif()
|
|
|
|
endif()
|
2008-06-25 03:00:12 +02:00
|
|
|
|
2012-11-19 14:57:47 +01:00
|
|
|
if(GENERATE_DOC)
|
|
|
|
if(NOT LDOC_EXECUTABLE)
|
|
|
|
message(STATUS "Not generating API documentation. Missing: ldoc")
|
|
|
|
set(GENERATE_DOC OFF)
|
2008-06-25 03:00:12 +02:00
|
|
|
endif()
|
|
|
|
endif()
|
2008-06-20 18:49:58 +02:00
|
|
|
# }}}
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Version stamp
|
2015-07-24 01:01:38 +02:00
|
|
|
if(OVERRIDE_VERSION)
|
|
|
|
set(VERSION ${OVERRIDE_VERSION})
|
|
|
|
elseif(EXISTS ${SOURCE_DIR}/.git/HEAD AND GIT_EXECUTABLE)
|
2008-06-23 23:07:28 +02:00
|
|
|
# get current version
|
|
|
|
execute_process(
|
2015-02-14 21:30:29 +01:00
|
|
|
COMMAND ${GIT_EXECUTABLE} describe --dirty
|
2008-06-23 23:07:28 +02:00
|
|
|
WORKING_DIRECTORY ${SOURCE_DIR}
|
|
|
|
OUTPUT_VARIABLE VERSION
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
2015-07-24 01:01:38 +02:00
|
|
|
# File the build-utils/git-version-stamp.sh script will look into.
|
2008-06-23 23:07:28 +02:00
|
|
|
set(VERSION_STAMP_FILE ${BUILD_DIR}/.version_stamp)
|
|
|
|
file(WRITE ${VERSION_STAMP_FILE} ${VERSION})
|
|
|
|
# create a version_stamp target later
|
|
|
|
set(BUILD_FROM_GIT TRUE)
|
2008-07-01 17:40:54 +02:00
|
|
|
elseif( EXISTS ${SOURCE_DIR}/.version_stamp )
|
2008-06-23 23:07:28 +02:00
|
|
|
# get version from version stamp
|
2008-06-24 18:49:37 +02:00
|
|
|
file(READ ${SOURCE_DIR}/.version_stamp VERSION)
|
2008-06-23 13:31:18 +02:00
|
|
|
endif()
|
2008-06-22 20:42:07 +02:00
|
|
|
# }}}
|
2008-06-17 16:41:49 +02:00
|
|
|
|
2008-06-20 19:36:26 +02:00
|
|
|
# {{{ Required libraries
|
|
|
|
#
|
|
|
|
# this sets up:
|
2010-08-23 11:33:47 +02:00
|
|
|
# AWESOME_REQUIRED_LDFLAGS
|
2008-06-20 19:36:26 +02:00
|
|
|
# AWESOME_REQUIRED_INCLUDE_DIRS
|
2008-06-16 08:44:12 +02:00
|
|
|
|
|
|
|
# Use pkgconfig to get most of the libraries
|
2008-08-27 17:14:47 +02:00
|
|
|
pkg_check_modules(AWESOME_COMMON_REQUIRED REQUIRED
|
2011-04-27 06:49:56 +02:00
|
|
|
xcb>=1.6)
|
2008-08-27 17:14:47 +02:00
|
|
|
|
2008-06-20 19:36:26 +02:00
|
|
|
pkg_check_modules(AWESOME_REQUIRED REQUIRED
|
2009-04-27 20:18:39 +02:00
|
|
|
glib-2.0
|
2012-10-16 20:02:56 +02:00
|
|
|
gdk-pixbuf-2.0
|
2008-06-19 22:49:26 +02:00
|
|
|
cairo
|
2009-04-02 17:33:55 +02:00
|
|
|
x11
|
2015-05-14 22:57:22 +02:00
|
|
|
x11-xcb
|
2013-09-19 16:48:10 +02:00
|
|
|
xcb-cursor
|
2008-06-19 22:49:26 +02:00
|
|
|
xcb-randr
|
2008-12-29 17:03:17 +01:00
|
|
|
xcb-xtest
|
2008-06-19 22:49:26 +02:00
|
|
|
xcb-xinerama
|
2012-11-05 17:56:56 +01:00
|
|
|
xcb-shape
|
2011-04-27 06:49:56 +02:00
|
|
|
xcb-util>=0.3.8
|
2009-04-11 18:02:31 +02:00
|
|
|
xcb-keysyms>=0.3.4
|
2011-04-27 06:49:56 +02:00
|
|
|
xcb-icccm>=0.3.8
|
2015-04-19 03:30:35 +02:00
|
|
|
# NOTE: it's not clear what version is required, but 1.10 works at least.
|
|
|
|
# See https://github.com/awesomeWM/awesome/pull/149#issuecomment-94208356.
|
|
|
|
xcb-xkb
|
2015-05-14 12:12:06 +02:00
|
|
|
xkbcommon
|
|
|
|
xkbcommon-x11
|
2008-09-28 15:52:43 +02:00
|
|
|
cairo-xcb
|
2009-04-03 16:30:18 +02:00
|
|
|
libstartup-notification-1.0>=0.10
|
2009-04-29 18:34:07 +02:00
|
|
|
xproto>=7.0.15
|
2009-04-18 18:50:55 +02:00
|
|
|
libxdg-basedir>=1.0.0)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-08-27 17:14:47 +02:00
|
|
|
if(NOT AWESOME_REQUIRED_FOUND OR NOT AWESOME_COMMON_REQUIRED_FOUND)
|
2008-07-18 08:24:09 +02:00
|
|
|
message(FATAL_ERROR)
|
|
|
|
endif()
|
|
|
|
|
2015-09-07 16:13:36 +02:00
|
|
|
# On Mac OS X, the executable of Awesome has to be linked against libiconv
|
|
|
|
# explicitly. Unfortunately, libiconv doesn't have its pkg-config file,
|
|
|
|
# and CMake doesn't provide a module for looking up the library. Thus, we
|
|
|
|
# have to do everything for ourselves...
|
|
|
|
if(APPLE)
|
|
|
|
if(NOT DEFINED AWESOME_ICONV_SEARCH_PATHS)
|
|
|
|
set(AWESOME_ICONV_SEARCH_PATHS /opt/local /opt /usr/local /usr)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED AWESOME_ICONV_INCLUDE_DIR)
|
|
|
|
find_path(AWESOME_ICONV_INCLUDE_DIR
|
|
|
|
iconv.h
|
|
|
|
PATHS ${AWESOME_ICONV_SEARCH_PATHS}
|
|
|
|
PATH_SUFFIXES include
|
|
|
|
NO_CMAKE_SYSTEM_PATH)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED AWESOME_ICONV_LIBRARY_PATH)
|
|
|
|
get_filename_component(AWESOME_ICONV_BASE_DIRECTORY ${AWESOME_ICONV_INCLUDE_DIR} DIRECTORY)
|
|
|
|
find_library(AWESOME_ICONV_LIBRARY_PATH
|
|
|
|
NAMES iconv
|
|
|
|
HINTS ${AWESOME_ICONV_BASE_DIRECTORY}
|
|
|
|
PATH_SUFFIXES lib)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT DEFINED AWESOME_ICONV_LIBRARY_PATH)
|
|
|
|
message(FATAL_ERROR "Looking for iconv library - not found.")
|
|
|
|
else()
|
|
|
|
message(STATUS "Looking for iconv library - found: ${AWESOME_ICONV_LIBRARY_PATH}")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(AWESOME_REQUIRED_LDFLAGS
|
|
|
|
${AWESOME_REQUIRED_LDFLAGS} ${AWESOME_ICONV_LIBRARY_PATH})
|
|
|
|
set(AWESOME_REQUIRED_INCLUDE_DIRS
|
|
|
|
${AWESOME_REQUIRED_INCLUDE_DIRS} ${AWESOME_ICONV_INCLUDE_DIR})
|
|
|
|
endif(APPLE)
|
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
macro(a_find_library variable library)
|
|
|
|
find_library(${variable} ${library})
|
|
|
|
if(NOT ${variable})
|
|
|
|
message(FATAL_ERROR ${library} " library not found.")
|
|
|
|
endif()
|
|
|
|
endmacro()
|
2008-06-20 20:29:47 +02:00
|
|
|
|
2010-10-11 21:54:28 +02:00
|
|
|
# Check for backtrace_symbols()
|
|
|
|
include(CheckFunctionExists)
|
|
|
|
check_function_exists(backtrace_symbols HAS_EXECINFO)
|
2009-10-26 23:07:35 +01:00
|
|
|
if(NOT HAS_EXECINFO)
|
2010-08-12 20:14:56 +02:00
|
|
|
find_library(LIB_EXECINFO execinfo)
|
|
|
|
if(LIB_EXECINFO)
|
|
|
|
set(HAS_EXECINFO 1)
|
2010-08-23 11:33:47 +02:00
|
|
|
set(AWESOME_REQUIRED_LDFLAGS
|
|
|
|
${AWESOME_REQUIRED_LDFLAGS}
|
2010-08-12 20:14:56 +02:00
|
|
|
${LIB_EXECINFO})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
if(HAS_EXECINFO)
|
|
|
|
message(STATUS "checking for execinfo -- found")
|
|
|
|
else()
|
|
|
|
message(STATUS "checking for execinfo -- not found")
|
2009-10-26 23:07:35 +01:00
|
|
|
endif()
|
2008-06-17 17:48:00 +02:00
|
|
|
|
2010-10-11 21:28:05 +02:00
|
|
|
# __builtin_clz is available since gcc 3.4
|
|
|
|
try_compile(HAS___BUILTIN_CLZ
|
|
|
|
${CMAKE_BINARY_DIR}
|
|
|
|
${CMAKE_SOURCE_DIR}/build-tests/__builtin_clz.c)
|
|
|
|
if(HAS___BUILTIN_CLZ)
|
|
|
|
message(STATUS "checking for __builtin_clz -- yes")
|
|
|
|
else()
|
|
|
|
message(STATUS "checking for __builtin_clz -- no")
|
|
|
|
endif()
|
|
|
|
|
2010-08-23 11:33:47 +02:00
|
|
|
set(AWESOME_REQUIRED_LDFLAGS
|
2009-05-09 19:59:27 +02:00
|
|
|
${AWESOME_COMMON_REQUIRED_LDFLAGS}
|
2010-08-23 11:33:47 +02:00
|
|
|
${AWESOME_REQUIRED_LDFLAGS}
|
2015-05-14 12:12:06 +02:00
|
|
|
${LUA_LIBRARIES}
|
|
|
|
)
|
2008-06-20 19:36:26 +02:00
|
|
|
|
2008-08-27 17:14:47 +02:00
|
|
|
set(AWESOME_REQUIRED_INCLUDE_DIRS
|
|
|
|
${AWESOME_COMMON_REQUIRED_INCLUDE_DIRS}
|
|
|
|
${AWESOME_REQUIRED_INCLUDE_DIRS}
|
2008-08-13 21:12:12 +02:00
|
|
|
${LUA_INCLUDE_DIR})
|
2008-06-20 19:36:26 +02:00
|
|
|
# }}}
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Optional libraries
|
2008-06-20 19:36:26 +02:00
|
|
|
#
|
|
|
|
# this sets up:
|
2010-08-23 11:33:47 +02:00
|
|
|
# AWESOME_OPTIONAL_LDFLAGS
|
2008-06-20 19:36:26 +02:00
|
|
|
# AWESOME_OPTIONAL_INCLUDE_DIRS
|
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
if(WITH_DBUS)
|
2008-06-20 19:36:26 +02:00
|
|
|
pkg_check_modules(DBUS dbus-1)
|
2008-06-23 13:31:18 +02:00
|
|
|
if(DBUS_FOUND)
|
2010-08-23 11:33:47 +02:00
|
|
|
set(AWESOME_OPTIONAL_LDFLAGS ${AWESOME_OPTIONAL_LDFLAGS} ${DBUS_LDFLAGS})
|
2008-06-23 13:31:18 +02:00
|
|
|
set(AWESOME_OPTIONAL_INCLUDE_DIRS ${AWESOME_OPTIONAL_INCLUDE_DIRS} ${DBUS_INCLUDE_DIRS})
|
|
|
|
else()
|
|
|
|
set(WITH_DBUS OFF)
|
|
|
|
message(STATUS "DBUS not found. Disabled.")
|
|
|
|
endif()
|
|
|
|
endif()
|
2008-06-20 19:36:26 +02:00
|
|
|
# }}}
|
2008-06-16 08:44:12 +02:00
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Install path and configuration variables
|
2008-06-25 01:43:16 +02:00
|
|
|
#If a sysconfdir is specified, use it instead
|
|
|
|
#of the default configuration dir.
|
|
|
|
if(DEFINED SYSCONFDIR)
|
2008-06-26 15:47:24 +02:00
|
|
|
set(SYSCONFDIR ${SYSCONFDIR} CACHE PATH "config directory")
|
2008-06-25 01:43:16 +02:00
|
|
|
else()
|
2012-06-11 14:47:01 +02:00
|
|
|
set(SYSCONFDIR ${CMAKE_INSTALL_PREFIX}/etc CACHE PATH "config directory")
|
2008-06-26 15:47:24 +02:00
|
|
|
endif()
|
2008-06-25 01:43:16 +02:00
|
|
|
|
2008-07-18 07:51:47 +02:00
|
|
|
#If an XDG Config Dir is specificed, use it instead
|
|
|
|
#of the default XDG configuration dir.
|
|
|
|
if(DEFINED XDG_CONFIG_DIR)
|
2009-04-01 17:56:02 +02:00
|
|
|
set(XDG_CONFIG_DIR ${XDG_CONFIG_DIR} CACHE PATH "xdg config directory")
|
2008-07-18 07:51:47 +02:00
|
|
|
else()
|
|
|
|
set(XDG_CONFIG_DIR ${SYSCONFDIR}/xdg CACHE PATH "xdg config directory")
|
|
|
|
endif()
|
|
|
|
|
2015-03-27 09:40:42 +01:00
|
|
|
# setting AWESOME_DATA_PATH
|
|
|
|
if(DEFINED AWESOME_DATA_PATH)
|
|
|
|
set(AWESOME_DATA_PATH ${AWESOME_DATA_PATH} CACHE PATH "awesome share directory")
|
|
|
|
else()
|
|
|
|
set(AWESOME_DATA_PATH ${CMAKE_INSTALL_PREFIX}/share/${PROJECT_AWE_NAME} CACHE PATH "awesome share directory")
|
|
|
|
endif()
|
|
|
|
|
2008-08-11 18:30:21 +02:00
|
|
|
# setting AWESOME_DOC_PATH
|
|
|
|
if(DEFINED AWESOME_DOC_PATH)
|
|
|
|
set(AWESOME_DOC_PATH ${AWESOME_DOC_PATH} CACHE PATH "awesome docs directory")
|
|
|
|
else()
|
2012-06-11 14:47:01 +02:00
|
|
|
set(AWESOME_DOC_PATH ${CMAKE_INSTALL_PREFIX}/share/doc/${PROJECT_AWE_NAME} CACHE PATH "awesome docs directory")
|
2008-08-11 18:30:21 +02:00
|
|
|
endif()
|
|
|
|
|
2008-08-12 14:14:25 +02:00
|
|
|
# setting AWESOME_XSESSION_PATH
|
|
|
|
if(DEFINED AWESOME_XSESSION_PATH)
|
|
|
|
set(AWESOME_XSESSION_PATH ${AWESOME_XSESSION_PATH} CACHE PATH "awesome xsessions directory")
|
|
|
|
else()
|
2012-06-11 14:47:01 +02:00
|
|
|
set(AWESOME_XSESSION_PATH ${CMAKE_INSTALL_PREFIX}/share/xsessions CACHE PATH "awesome xsessions directory")
|
2008-08-12 14:14:25 +02:00
|
|
|
endif()
|
|
|
|
|
2008-08-12 16:26:29 +02:00
|
|
|
# set man path
|
|
|
|
if(DEFINED AWESOME_MAN_PATH)
|
|
|
|
set(AWESOME_MAN_PATH ${AWESOME_MAN_PATH} CACHE PATH "awesome manpage directory")
|
|
|
|
else()
|
2012-06-11 14:47:01 +02:00
|
|
|
set(AWESOME_MAN_PATH ${CMAKE_INSTALL_PREFIX}/share/man CACHE PATH "awesome manpage directory")
|
2008-08-12 16:26:29 +02:00
|
|
|
endif()
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# Hide to avoid confusion
|
2012-06-11 14:47:01 +02:00
|
|
|
mark_as_advanced(CMAKE_INSTALL_CMAKE_INSTALL_PREFIX)
|
2008-06-26 15:52:11 +02:00
|
|
|
|
2008-06-23 21:15:58 +02:00
|
|
|
set(AWESOME_VERSION ${VERSION})
|
|
|
|
set(AWESOME_RELEASE ${CODENAME})
|
2008-07-18 07:51:47 +02:00
|
|
|
set(AWESOME_SYSCONFDIR ${XDG_CONFIG_DIR}/${PROJECT_AWE_NAME})
|
2008-06-25 04:00:19 +02:00
|
|
|
set(AWESOME_LUA_LIB_PATH ${AWESOME_DATA_PATH}/lib)
|
|
|
|
set(AWESOME_ICON_PATH ${AWESOME_DATA_PATH}/icons)
|
2008-08-05 22:21:22 +02:00
|
|
|
set(AWESOME_THEMES_PATH ${AWESOME_DATA_PATH}/themes)
|
2008-06-20 19:59:09 +02:00
|
|
|
# }}}
|
2008-06-20 02:23:51 +02:00
|
|
|
|
2016-03-10 05:45:22 +01:00
|
|
|
|
|
|
|
if(GENERATE_DOC)
|
|
|
|
# Generate some images and examples
|
|
|
|
include(docs/generate_examples.cmake)
|
|
|
|
endif()
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Configure files
|
2015-06-22 13:29:42 +02:00
|
|
|
file(GLOB awesome_c_configure_files RELATIVE ${SOURCE_DIR}
|
2015-03-27 17:45:59 +01:00
|
|
|
${SOURCE_DIR}/*.c
|
|
|
|
${SOURCE_DIR}/*.h
|
2015-06-22 13:29:42 +02:00
|
|
|
${SOURCE_DIR}/common/*.c
|
|
|
|
${SOURCE_DIR}/common/*.h
|
|
|
|
${SOURCE_DIR}/objects/*.c
|
|
|
|
${SOURCE_DIR}/objects/*.h)
|
|
|
|
file(GLOB_RECURSE awesome_lua_configure_files RELATIVE ${SOURCE_DIR}
|
2015-03-27 17:45:59 +01:00
|
|
|
${SOURCE_DIR}/lib/*.lua
|
|
|
|
${SOURCE_DIR}/themes/*/*.lua)
|
2012-11-19 14:57:47 +01:00
|
|
|
set(AWESOME_CONFIGURE_FILES
|
2015-02-27 00:24:23 +01:00
|
|
|
${awesome_c_configure_files}
|
2008-09-29 16:49:18 +02:00
|
|
|
${awesome_lua_configure_files}
|
2015-03-27 17:45:59 +01:00
|
|
|
config.h
|
|
|
|
docs/config.ld
|
|
|
|
awesomerc.lua
|
|
|
|
awesome-version-internal.h)
|
|
|
|
|
|
|
|
foreach(file ${AWESOME_CONFIGURE_FILES})
|
2008-06-23 13:31:18 +02:00
|
|
|
configure_file(${SOURCE_DIR}/${file}
|
2015-03-27 17:45:59 +01:00
|
|
|
${BUILD_DIR}/${file}
|
2015-06-20 01:56:05 +02:00
|
|
|
ESCAPE_QUOTES
|
2008-06-20 12:40:01 +02:00
|
|
|
@ONLY)
|
2015-03-27 17:45:59 +01:00
|
|
|
endforeach()
|
|
|
|
#}}}
|
2008-06-20 12:40:01 +02:00
|
|
|
|
2015-03-27 17:45:59 +01:00
|
|
|
# {{{ Copy additional files
|
2015-06-22 13:29:42 +02:00
|
|
|
file(GLOB awesome_md_docs RELATIVE ${SOURCE_DIR}
|
2015-03-27 17:45:59 +01:00
|
|
|
${SOURCE_DIR}/docs/*.md)
|
|
|
|
set(AWESOME_ADDITIONAL_FILES
|
|
|
|
${awesome_md_docs})
|
|
|
|
|
|
|
|
foreach(file ${AWESOME_ADDITIONAL_FILES})
|
|
|
|
configure_file(${SOURCE_DIR}/${file}
|
|
|
|
${BUILD_DIR}/${file}
|
|
|
|
COPYONLY)
|
2008-06-23 13:31:18 +02:00
|
|
|
endforeach()
|
2008-06-20 19:59:09 +02:00
|
|
|
#}}}
|
2008-06-16 20:39:22 +02:00
|
|
|
|
2014-05-26 21:26:52 +02:00
|
|
|
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80:foldmethod=marker
|