2008-08-13 21:30:55 +02:00
|
|
|
cmake_minimum_required(VERSION 2.6.0)
|
2008-06-23 13:31:18 +02:00
|
|
|
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
|
2008-06-20 23:38:33 +02:00
|
|
|
|
2008-06-25 01:45:41 +02:00
|
|
|
if(COMMAND cmake_policy)
|
|
|
|
cmake_policy(VERSION 2.6)
|
|
|
|
endif()
|
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
2008-06-23 13:16:57 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
if(NOT EXISTS ${SOURCE_DIR}/awesomeConfig.cmake)
|
|
|
|
message(FATAL_ERROR "Please provide awesomeConfig.cmake")
|
|
|
|
endif()
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
include(awesomeConfig.cmake)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-23 13:57:30 +02:00
|
|
|
include_directories(
|
|
|
|
${SOURCE_DIR}
|
|
|
|
${BUILD_DIR}
|
2008-08-27 17:14:47 +02:00
|
|
|
${AWESOME_COMMON_REQUIRED_INCLUDE_DIRS}
|
2008-06-23 13:57:30 +02:00
|
|
|
${AWESOME_REQUIRED_INCLUDE_DIRS}
|
|
|
|
${AWESOME_OPTIONAL_INCLUDE_DIRS})
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2009-08-20 16:18:52 +02:00
|
|
|
file(GLOB_RECURSE AWE_LUA_FILES ${BUILD_DIR}/lib/*.lua ${BUILD_DIR}/luadoc/*.lua)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-07-10 15:47:27 +02:00
|
|
|
set(AWE_CONF_FILE_DEFAULT ${BUILD_DIR}/awesomerc.lua)
|
|
|
|
set(AWE_CONF_FILE rc.lua)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
set(AWE_ICON_DIR ${SOURCE_DIR}/icons)
|
2008-08-05 22:21:22 +02:00
|
|
|
set(AWE_THEMES_DIR ${SOURCE_DIR}/themes)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
set(AWE_DOC_FILES
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/AUTHORS
|
|
|
|
${SOURCE_DIR}/BUGS
|
|
|
|
${SOURCE_DIR}/README
|
|
|
|
${SOURCE_DIR}/LICENSE)
|
2008-06-21 01:43:35 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
set(AWE_SRCS
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/awesome.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/banning.c
|
|
|
|
${SOURCE_DIR}/color.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/dbus.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/draw.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/event.c
|
|
|
|
${SOURCE_DIR}/ewmh.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/font.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/keygrabber.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/keyresolv.c
|
2008-09-17 16:38:38 +02:00
|
|
|
${SOURCE_DIR}/luaa.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/mouse.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/mousegrabber.c
|
|
|
|
${SOURCE_DIR}/property.c
|
|
|
|
${SOURCE_DIR}/root.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/screen.c
|
2009-01-02 20:11:21 +01:00
|
|
|
${SOURCE_DIR}/selection.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/spawn.c
|
|
|
|
${SOURCE_DIR}/stack.c
|
|
|
|
${SOURCE_DIR}/strut.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/systray.c
|
2009-09-17 17:51:06 +02:00
|
|
|
${SOURCE_DIR}/xwindow.c
|
2008-06-30 18:25:01 +02:00
|
|
|
${SOURCE_DIR}/common/atoms.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/common/backtrace.c
|
|
|
|
${SOURCE_DIR}/common/buffer.c
|
|
|
|
${SOURCE_DIR}/common/luaclass.c
|
|
|
|
${SOURCE_DIR}/common/luaobject.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/common/util.c
|
|
|
|
${SOURCE_DIR}/common/version.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/common/xcursor.c
|
2008-06-23 13:16:57 +02:00
|
|
|
${SOURCE_DIR}/common/xembed.c
|
|
|
|
${SOURCE_DIR}/common/xutil.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/objects/button.c
|
|
|
|
${SOURCE_DIR}/objects/client.c
|
|
|
|
${SOURCE_DIR}/objects/image.c
|
|
|
|
${SOURCE_DIR}/objects/key.c
|
|
|
|
${SOURCE_DIR}/objects/tag.c
|
|
|
|
${SOURCE_DIR}/objects/timer.c
|
|
|
|
${SOURCE_DIR}/objects/wibox.c
|
|
|
|
${SOURCE_DIR}/objects/window.c
|
|
|
|
${SOURCE_DIR}/objects/widget.c
|
|
|
|
${SOURCE_DIR}/objects/widgets/imagebox.c
|
2009-09-14 20:26:33 +02:00
|
|
|
${SOURCE_DIR}/objects/widgets/systray.c
|
2009-10-02 17:54:07 +02:00
|
|
|
${SOURCE_DIR}/objects/widgets/textbox.c)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
set(AWE_MAN_SRCS
|
2009-04-11 16:11:43 +02:00
|
|
|
${SOURCE_DIR}/manpages/awesome.1.txt
|
|
|
|
${SOURCE_DIR}/manpages/awsetbg.1.txt
|
|
|
|
${SOURCE_DIR}/manpages/awesome-client.1.txt
|
|
|
|
${SOURCE_DIR}/manpages/awesomerc.5.txt)
|
2010-05-02 15:17:15 +02:00
|
|
|
set(AWE_MAN_LANGS es fr de)
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
add_executable(${PROJECT_AWE_NAME}
|
|
|
|
${AWE_SRCS}
|
2008-06-23 13:16:57 +02:00
|
|
|
${BUILD_DIR}/common/tokenize.c)
|
2008-06-23 12:41:40 +02:00
|
|
|
|
2008-08-22 17:40:36 +02:00
|
|
|
set_target_properties(${PROJECT_AWE_NAME}
|
|
|
|
PROPERTIES
|
|
|
|
LINK_FLAGS -export-dynamic)
|
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
target_link_libraries(${PROJECT_AWE_NAME}
|
2008-08-27 17:14:47 +02:00
|
|
|
${AWESOME_COMMON_REQUIRED_LIBRARIES}
|
2008-06-20 19:36:26 +02:00
|
|
|
${AWESOME_REQUIRED_LIBRARIES}
|
|
|
|
${AWESOME_OPTIONAL_LIBRARIES})
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# atoms
|
2008-06-23 13:31:18 +02:00
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/common)
|
2008-06-30 20:05:53 +02:00
|
|
|
add_custom_command(
|
|
|
|
COMMAND ${SOURCE_DIR}/build-utils/atoms-ext.sh ${SOURCE_DIR}/common/atoms.list
|
|
|
|
ARGS > ${BUILD_DIR}/common/atoms-extern.h
|
|
|
|
OUTPUT ${BUILD_DIR}/common/atoms-extern.h
|
|
|
|
WORKING_DIRECTORY ${SOURCE_DIR}
|
|
|
|
DEPENDS ${SOURCE_DIR}/common/atoms.list
|
|
|
|
COMMENT "Generating atoms-extern.h"
|
|
|
|
VERBATIM)
|
|
|
|
|
|
|
|
add_custom_command(
|
|
|
|
COMMAND ${SOURCE_DIR}/build-utils/atoms-int.sh ${SOURCE_DIR}/common/atoms.list
|
|
|
|
ARGS > ${BUILD_DIR}/common/atoms-intern.h
|
|
|
|
OUTPUT ${BUILD_DIR}/common/atoms-intern.h
|
|
|
|
WORKING_DIRECTORY ${SOURCE_DIR}
|
|
|
|
DEPENDS ${SOURCE_DIR}/common/atoms.list
|
|
|
|
COMMENT "Generating atoms-intern.h"
|
|
|
|
VERBATIM)
|
2008-06-23 12:41:40 +02:00
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# gperf
|
2008-06-23 13:31:18 +02:00
|
|
|
add_custom_command(
|
2008-06-23 13:16:57 +02:00
|
|
|
COMMAND ${SOURCE_DIR}/build-utils/gperf.sh
|
|
|
|
ARGS ${SOURCE_DIR}/common/tokenize.gperf
|
|
|
|
${BUILD_DIR}/common/tokenize.h
|
|
|
|
OUTPUT ${BUILD_DIR}/common/tokenize.h
|
|
|
|
DEPENDS ${SOURCE_DIR}/common/tokenize.gperf
|
|
|
|
${SOURCE_DIR}/build-utils/gperf.sh
|
2008-06-23 12:41:40 +02:00
|
|
|
COMMENT "Generating common/tokenize.h")
|
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
add_custom_command(
|
2008-06-23 13:16:57 +02:00
|
|
|
COMMAND ${SOURCE_DIR}/build-utils/gperf.sh
|
|
|
|
ARGS ${SOURCE_DIR}/common/tokenize.gperf
|
|
|
|
${BUILD_DIR}/common/tokenize.c
|
|
|
|
OUTPUT ${BUILD_DIR}/common/tokenize.c
|
|
|
|
DEPENDS ${SOURCE_DIR}/common/tokenize.gperf
|
|
|
|
${SOURCE_DIR}/build-utils/gperf.sh
|
2008-06-23 12:41:40 +02:00
|
|
|
COMMENT "Generating common/tokenize.c")
|
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
add_custom_target(generated_sources
|
2009-06-17 15:57:10 +02:00
|
|
|
DEPENDS ${BUILD_DIR}/common/atoms-intern.h
|
2008-06-30 20:05:53 +02:00
|
|
|
${BUILD_DIR}/common/atoms-extern.h
|
2008-06-23 13:16:57 +02:00
|
|
|
${BUILD_DIR}/common/tokenize.c
|
|
|
|
${BUILD_DIR}/common/tokenize.h)
|
2008-06-23 12:41:40 +02:00
|
|
|
|
2008-11-10 11:57:20 +01:00
|
|
|
# Default theme directory
|
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/themes/default)
|
2008-11-10 08:58:20 +01:00
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/themes/sky)
|
2009-08-30 03:02:54 +02:00
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/themes/zenburn)
|
2008-06-23 13:31:18 +02:00
|
|
|
add_dependencies(${PROJECT_AWE_NAME} generated_sources)
|
2008-06-21 00:24:12 +02:00
|
|
|
# }}}
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Version stamp
|
2008-06-23 13:31:18 +02:00
|
|
|
if(BUILD_FROM_GIT)
|
|
|
|
add_custom_target(version_stamp ALL
|
2008-06-23 13:57:30 +02:00
|
|
|
COMMAND ${SOURCE_DIR}/build-utils/git-version-stamp.sh
|
|
|
|
${VERSION_STAMP_FILE}
|
|
|
|
${BUILD_DIR}/awesome-version-internal.h
|
|
|
|
WORKING_DIRECTORY ${SOURCE_DIR})
|
2008-06-22 20:42:07 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
add_dependencies(${PROJECT_AWE_NAME} version_stamp)
|
|
|
|
endif()
|
2008-06-22 20:42:07 +02:00
|
|
|
# }}}
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Manpages
|
2008-06-23 13:31:18 +02:00
|
|
|
if(GENERATE_MANPAGES)
|
2009-04-11 16:11:43 +02:00
|
|
|
if(NOT BUILD_DIR STREQUAL SOURCE_DIR)
|
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/manpages)
|
|
|
|
endif()
|
2008-06-21 17:49:56 +02:00
|
|
|
|
2010-04-09 00:42:27 +02:00
|
|
|
# add the default translation to the list of languages
|
|
|
|
set(AWE_MAN_LANGS default ${AWE_MAN_LANGS})
|
|
|
|
|
|
|
|
foreach(lang ${AWE_MAN_LANGS})
|
|
|
|
|
|
|
|
foreach(txtfile ${AWE_MAN_SRCS})
|
|
|
|
# figure the base name of the file (ie "awesome.1")
|
|
|
|
GET_FILENAME_COMPONENT(tmpname ${txtfile} NAME)
|
|
|
|
string(REGEX REPLACE ".txt\$" "" basename ${tmpname})
|
|
|
|
|
|
|
|
# figure the relative path of the file
|
|
|
|
GET_FILENAME_COMPONENT(tmppath ${txtfile} PATH)
|
|
|
|
string(REPLACE ${SOURCE_DIR}/ "" relpath ${tmppath})
|
|
|
|
|
|
|
|
# figure the manpage section to install to from filename
|
|
|
|
string(REGEX REPLACE "^.*\\.([0-9])$" "\\1" section ${basename})
|
|
|
|
|
|
|
|
# construct the language specific versions of the basename and path
|
|
|
|
if (lang STREQUAL default)
|
|
|
|
set(basename2 ${basename})
|
|
|
|
set(relpath2 ${relpath}/man${section})
|
|
|
|
else()
|
|
|
|
set(basename2 ${basename}.${lang})
|
|
|
|
set(relpath2 ${relpath}/${lang}/man${section})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# create the build directory (if it does not exist)
|
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/${relpath2})
|
|
|
|
|
|
|
|
# set the final filenames
|
|
|
|
set(txtfile ${SOURCE_DIR}/${relpath}/${basename2}.txt)
|
|
|
|
set(xmlfile ${BUILD_DIR}/${relpath2}/${basename}.xml)
|
|
|
|
set(gzfile ${BUILD_DIR}/${relpath2}/${basename}.gz)
|
|
|
|
set(manfile ${BUILD_DIR}/${relpath2}/${basename})
|
2008-06-21 17:49:56 +02:00
|
|
|
|
2009-12-28 10:43:52 +01:00
|
|
|
add_custom_command(
|
2010-04-09 00:42:27 +02:00
|
|
|
COMMAND ${ASCIIDOC_EXECUTABLE} -d manpage -b docbook -o ${xmlfile} - < ${txtfile}
|
|
|
|
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
|
|
|
|
OUTPUT ${xmlfile}
|
|
|
|
DEPENDS ${txtfile}
|
2009-12-28 10:43:52 +01:00
|
|
|
VERBATIM)
|
2010-04-09 00:42:27 +02:00
|
|
|
add_custom_command(
|
|
|
|
COMMAND ${XMLTO_EXECUTABLE} man ${xmlfile}
|
|
|
|
OUTPUT ${manfile}
|
|
|
|
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
|
|
|
|
DEPENDS ${xmlfile})
|
|
|
|
|
|
|
|
if(COMPRESS_MANPAGES)
|
|
|
|
add_custom_command(
|
|
|
|
COMMAND ${GZIP_EXECUTABLE} < ${manfile} > ${gzfile}
|
|
|
|
OUTPUT ${gzfile}
|
|
|
|
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
|
|
|
|
DEPENDS ${manfile}
|
|
|
|
VERBATIM)
|
|
|
|
|
|
|
|
set(MAN_FILES ${MAN_FILES} ${gzfile})
|
|
|
|
else()
|
|
|
|
set(MAN_FILES ${MAN_FILES} ${manfile})
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2009-12-28 10:43:52 +01:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
endforeach()
|
2008-06-21 17:49:56 +02:00
|
|
|
|
2008-06-23 13:31:18 +02:00
|
|
|
add_custom_target(man ALL DEPENDS ${MAN_FILES})
|
|
|
|
endif()
|
2008-06-21 02:36:10 +02:00
|
|
|
# }}}
|
2008-06-19 22:49:26 +02:00
|
|
|
|
2008-06-22 03:00:42 +02:00
|
|
|
# {{{ Doxygen
|
2008-06-23 13:31:18 +02:00
|
|
|
if(DOXYGEN_EXECUTABLE)
|
|
|
|
add_custom_target(doc
|
2008-06-23 13:57:30 +02:00
|
|
|
COMMAND ${DOXYGEN_EXECUTABLE} awesome.doxygen
|
|
|
|
WORKING_DIRECTORY ${BUILD_DIR})
|
2008-06-23 13:31:18 +02:00
|
|
|
endif()
|
2008-06-22 03:00:42 +02:00
|
|
|
# }}}
|
2008-06-20 18:06:45 +02:00
|
|
|
|
2008-06-23 16:29:51 +02:00
|
|
|
# {{{ Lua API Documentation
|
2008-06-25 03:00:12 +02:00
|
|
|
if(GENERATE_LUADOC)
|
2008-06-23 18:19:39 +02:00
|
|
|
|
|
|
|
if(NOT BUILD_DIR STREQUAL SOURCE_DIR)
|
|
|
|
file(MAKE_DIRECTORY ${BUILD_DIR}/lib)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(luadoc_c_srcs "")
|
|
|
|
|
2008-09-29 16:49:18 +02:00
|
|
|
# Generate documentation of lib//0lua
|
2009-08-20 16:18:52 +02:00
|
|
|
file(GLOB_RECURSE lua_lib_files ${BUILD_DIR}/lib/*.lua
|
|
|
|
${SOURCE_DIR}/luadoc/*.lua)
|
2008-09-29 16:49:18 +02:00
|
|
|
foreach(filename ${lua_lib_files})
|
2009-08-20 16:18:52 +02:00
|
|
|
file(RELATIVE_PATH filename ${BUILD_DIR} ${filename})
|
2008-06-23 18:19:39 +02:00
|
|
|
set(luadoc_srcs ${luadoc_srcs} ${filename})
|
2008-06-23 16:29:51 +02:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_custom_target(luadoc ALL
|
2009-08-20 16:18:52 +02:00
|
|
|
COMMAND ${LUADOC_EXECUTABLE} ${luadoc_srcs} -d ${BUILD_DIR}/luadoc --nofiles
|
|
|
|
WORKING_DIRECTORY ${BUILD_DIR}
|
|
|
|
DEPENDS ${AWE_LUA_FILES})
|
2008-06-23 16:29:51 +02:00
|
|
|
endif()
|
|
|
|
# }}}
|
|
|
|
|
2009-05-16 16:27:00 +02:00
|
|
|
# {{{ Theme icons
|
|
|
|
file(GLOB icon_sources ${SOURCE_DIR}/themes/*/titlebar/*.png)
|
|
|
|
set(ALL_ICONS ${icon_sources})
|
|
|
|
|
|
|
|
macro(a_icon_convert match replacement input)
|
|
|
|
string(REPLACE ${match} ${replacement} output ${input})
|
|
|
|
|
|
|
|
if(NOT ${input} STREQUAL ${output})
|
|
|
|
if(NOT ${output} MATCHES ${BUILD_DIR})
|
|
|
|
string(REPLACE ${SOURCE_DIR} ${BUILD_DIR} output ${output})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(ALL_ICONS ${ALL_ICONS} ${output})
|
|
|
|
|
|
|
|
get_filename_component(output_path ${output} PATH)
|
|
|
|
file(MAKE_DIRECTORY ${output_path})
|
|
|
|
|
|
|
|
add_custom_command(
|
|
|
|
COMMAND ${CONVERT_EXECUTABLE} ${input} ${ARGN} ${output}
|
|
|
|
OUTPUT ${output}
|
|
|
|
DEPENDS ${input}
|
|
|
|
VERBATIM)
|
|
|
|
endif()
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
foreach(icon ${ALL_ICONS})
|
|
|
|
# Make unfocused icons translucent
|
|
|
|
a_icon_convert("_focus" "_normal" ${icon}
|
2009-05-18 17:50:53 +02:00
|
|
|
-gamma 0.6 -channel A -evaluate Multiply 0.4)
|
2009-05-16 16:27:00 +02:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
foreach(icon ${ALL_ICONS})
|
|
|
|
# Make inactive icons grayscale
|
|
|
|
a_icon_convert("_active" "_inactive" ${icon}
|
|
|
|
-colorspace Gray)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_custom_target(generated_icons ALL DEPENDS ${ALL_ICONS})
|
|
|
|
# }}}
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Dist tarball
|
2008-06-23 23:07:28 +02:00
|
|
|
if(BUILD_FROM_GIT)
|
|
|
|
add_custom_target(dist
|
|
|
|
COMMAND ${SOURCE_DIR}/build-utils/dist.sh ${VERSION}
|
|
|
|
WORKING_DIRECTORY ${SOURCE_DIR})
|
|
|
|
endif()
|
|
|
|
# }}}
|
|
|
|
|
2008-06-30 20:05:53 +02:00
|
|
|
# {{{ Installation
|
2009-04-08 17:48:52 +02:00
|
|
|
install(TARGETS ${PROJECT_AWE_NAME} RUNTIME DESTINATION bin)
|
2008-08-21 11:33:27 +02:00
|
|
|
install(FILES "utils/awsetbg" DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
2009-04-08 17:48:52 +02:00
|
|
|
install(FILES "utils/awesome-client" DESTINATION bin PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|
2009-12-22 12:46:29 +01:00
|
|
|
install(DIRECTORY ${BUILD_DIR}/lib DESTINATION ${AWESOME_DATA_PATH}
|
|
|
|
PATTERN "*.in" EXCLUDE)
|
2008-07-10 15:47:27 +02:00
|
|
|
install(FILES ${AWE_CONF_FILE_DEFAULT} DESTINATION ${AWESOME_SYSCONFDIR}
|
|
|
|
RENAME ${AWE_CONF_FILE})
|
2008-06-23 13:31:18 +02:00
|
|
|
if(GENERATE_MANPAGES)
|
2010-04-09 00:42:27 +02:00
|
|
|
if(COMPRESS_MANPAGES)
|
2010-05-20 19:57:10 +02:00
|
|
|
set(regex "\\.(xml|txt|[0-9])$")
|
2010-04-09 00:42:27 +02:00
|
|
|
else()
|
2010-05-20 19:57:10 +02:00
|
|
|
set(regex "\\.(xml|txt|gz)$")
|
2010-04-09 00:42:27 +02:00
|
|
|
endif()
|
|
|
|
install(DIRECTORY ${BUILD_DIR}/${relpath}/ DESTINATION ${AWESOME_MAN_PATH}
|
|
|
|
REGEX ${regex} EXCLUDE )
|
2008-06-23 13:31:18 +02:00
|
|
|
endif()
|
2008-06-25 04:00:19 +02:00
|
|
|
install(DIRECTORY ${AWE_ICON_DIR} DESTINATION ${AWESOME_DATA_PATH})
|
2009-12-22 12:46:29 +01:00
|
|
|
install(DIRECTORY ${BUILD_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
|
|
|
PATTERN "*.in" EXCLUDE)
|
2008-11-10 11:57:20 +01:00
|
|
|
install(DIRECTORY ${SOURCE_DIR}/themes DESTINATION ${AWESOME_DATA_PATH}
|
|
|
|
PATTERN "*.in" EXCLUDE)
|
2008-06-25 04:00:19 +02:00
|
|
|
install(FILES ${AWE_DOC_FILES} DESTINATION ${AWESOME_DOC_PATH})
|
2008-08-12 11:36:11 +02:00
|
|
|
install(FILES "awesome.desktop" DESTINATION ${AWESOME_XSESSION_PATH})
|
2008-06-25 04:00:19 +02:00
|
|
|
if(GENERATE_LUADOC)
|
|
|
|
install(DIRECTORY ${BUILD_DIR}/luadoc DESTINATION ${AWESOME_DOC_PATH})
|
2008-06-23 16:29:51 +02:00
|
|
|
endif()
|
2008-06-21 01:43:35 +02:00
|
|
|
# }}}
|
2008-06-16 08:44:12 +02:00
|
|
|
|
2008-06-19 14:30:39 +02:00
|
|
|
# vim: filetype=cmake:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|