cmake: indent
This commit is contained in:
parent
d08f746733
commit
8f5363bcc1
|
@ -10,7 +10,8 @@ endif()
|
||||||
|
|
||||||
include(awesomeConfig.cmake)
|
include(awesomeConfig.cmake)
|
||||||
|
|
||||||
include_directories(${SOURCE_DIR}
|
include_directories(
|
||||||
|
${SOURCE_DIR}
|
||||||
${BUILD_DIR}
|
${BUILD_DIR}
|
||||||
${AWESOME_REQUIRED_INCLUDE_DIRS}
|
${AWESOME_REQUIRED_INCLUDE_DIRS}
|
||||||
${AWESOME_OPTIONAL_INCLUDE_DIRS})
|
${AWESOME_OPTIONAL_INCLUDE_DIRS})
|
||||||
|
@ -174,7 +175,8 @@ if(GENERATE_MANPAGES)
|
||||||
macro(a_file_match infile regex result_var)
|
macro(a_file_match infile regex result_var)
|
||||||
if(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION LESS 6)
|
if(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION LESS 6)
|
||||||
# cmake < 2.6 doesn't know FILE(STRINGS ...)
|
# cmake < 2.6 doesn't know FILE(STRINGS ...)
|
||||||
execute_process(COMMAND ${GREP_EXECUTABLE} -l ${regex} ${infile}
|
execute_process(
|
||||||
|
COMMAND ${GREP_EXECUTABLE} -l ${regex} ${infile}
|
||||||
RESULT_VARIABLE exit_code
|
RESULT_VARIABLE exit_code
|
||||||
OUTPUT_QUIET)
|
OUTPUT_QUIET)
|
||||||
if(exit_code EQUAL 0)
|
if(exit_code EQUAL 0)
|
||||||
|
@ -201,7 +203,8 @@ if(GENERATE_MANPAGES)
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# luadoc target
|
# luadoc target
|
||||||
add_custom_command(COMMAND ${CAT_EXECUTABLE} ${LUA_APIDOC_SRCS}
|
add_custom_command(
|
||||||
|
COMMAND ${CAT_EXECUTABLE} ${LUA_APIDOC_SRCS}
|
||||||
| ${LUA_EXECUTABLE} ${SOURCE_DIR}/build-utils/gendoc.lua
|
| ${LUA_EXECUTABLE} ${SOURCE_DIR}/build-utils/gendoc.lua
|
||||||
> ${LUADOC_FILE}
|
> ${LUADOC_FILE}
|
||||||
OUTPUT ${LUADOC_FILE}
|
OUTPUT ${LUADOC_FILE}
|
||||||
|
@ -222,16 +225,19 @@ if(GENERATE_MANPAGES)
|
||||||
|
|
||||||
# TODO: This is still not 100% right. Actually only
|
# TODO: This is still not 100% right. Actually only
|
||||||
# awesomerc.5.xml should depend on ${LUADOC_FILE}.
|
# awesomerc.5.xml should depend on ${LUADOC_FILE}.
|
||||||
add_custom_command(COMMAND ${CAT_EXECUTABLE} ${txtfile}
|
add_custom_command(
|
||||||
|
COMMAND ${CAT_EXECUTABLE} ${txtfile}
|
||||||
| ${ASCIIDOC_EXECUTABLE} -d manpage -b docbook -o ${xmlfile} -
|
| ${ASCIIDOC_EXECUTABLE} -d manpage -b docbook -o ${xmlfile} -
|
||||||
WORKING_DIRECTORY ${BUILD_DIR}
|
WORKING_DIRECTORY ${BUILD_DIR}
|
||||||
OUTPUT ${xmlfile}
|
OUTPUT ${xmlfile}
|
||||||
DEPENDS ${txtfile} ${LUADOC_FILE}
|
DEPENDS ${txtfile} ${LUADOC_FILE}
|
||||||
VERBATIM)
|
VERBATIM)
|
||||||
add_custom_command(COMMAND ${XMLTO_EXECUTABLE} man ${xmlfile}
|
add_custom_command(
|
||||||
|
COMMAND ${XMLTO_EXECUTABLE} man ${xmlfile}
|
||||||
OUTPUT ${manfile}
|
OUTPUT ${manfile}
|
||||||
DEPENDS ${xmlfile})
|
DEPENDS ${xmlfile})
|
||||||
add_custom_command(COMMAND ${CAT_EXECUTABLE} ${manfile}
|
add_custom_command(
|
||||||
|
COMMAND ${CAT_EXECUTABLE} ${manfile}
|
||||||
| ${GZIP_EXECUTABLE}
|
| ${GZIP_EXECUTABLE}
|
||||||
> ${gzfile}
|
> ${gzfile}
|
||||||
OUTPUT ${gzfile}
|
OUTPUT ${gzfile}
|
||||||
|
|
|
@ -64,7 +64,8 @@ endif()
|
||||||
if(EXISTS ${SOURCE_DIR}/.git/HEAD)
|
if(EXISTS ${SOURCE_DIR}/.git/HEAD)
|
||||||
if(GIT_EXECUTABLE)
|
if(GIT_EXECUTABLE)
|
||||||
# get current version
|
# get current version
|
||||||
execute_process(COMMAND ${GIT_EXECUTABLE} describe
|
execute_process(
|
||||||
|
COMMAND ${GIT_EXECUTABLE} describe
|
||||||
WORKING_DIRECTORY ${SOURCE_DIR}
|
WORKING_DIRECTORY ${SOURCE_DIR}
|
||||||
OUTPUT_VARIABLE VERSION
|
OUTPUT_VARIABLE VERSION
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
@ -136,7 +137,8 @@ set(AWESOME_REQUIRED_LIBRARIES ${AWESOME_REQUIRED_LIBRARIES}
|
||||||
${LIB_EV}
|
${LIB_EV}
|
||||||
${LUA_LIB})
|
${LUA_LIB})
|
||||||
|
|
||||||
set(AWESOME_REQUIRED_INCLUDE_DIRS ${AWESOME_REQUIRED_INCLUDE_DIRS} ${LUA_INC_DIR})
|
set(AWESOME_REQUIRED_INCLUDE_DIRS ${AWESOME_REQUIRED_INCLUDE_DIRS}
|
||||||
|
${LUA_INC_DIR})
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Optional libraries.
|
# {{{ Optional libraries.
|
||||||
|
@ -191,7 +193,8 @@ set(AWESOME_REL_DOC_PATH ${AWESOME_SHARE}/doc/${PROJECT_AWE_NAME})
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Configure files.
|
# {{{ Configure files.
|
||||||
set (AWESOME_CONFIGURE_FILES config.h.in
|
set(AWESOME_CONFIGURE_FILES
|
||||||
|
config.h.in
|
||||||
awesomerc.lua.in
|
awesomerc.lua.in
|
||||||
awesome-version-internal.h.in
|
awesome-version-internal.h.in
|
||||||
awesome.doxygen.in)
|
awesome.doxygen.in)
|
||||||
|
|
Loading…
Reference in New Issue