Build system: find a term for wmfsrc

This commit is contained in:
Philippe Pepiot 2009-05-03 19:17:37 +02:00
parent 337732f45b
commit a332f8f85e
3 changed files with 12 additions and 5 deletions

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ config.h
build/ build/
doc/ doc/
wmfs.doxygen wmfs.doxygen
wmfsrc

View File

@ -173,13 +173,18 @@ else()
set(WMFS_MAN_PATH ${PREFIX}/share/man CACHE PATH "wmfs manpage directory") set(WMFS_MAN_PATH ${PREFIX}/share/man CACHE PATH "wmfs manpage directory")
endif() endif()
# {{ Doxygen
if(DOXYGEN_EXECUTABLE) if(DOXYGEN_EXECUTABLE)
add_custom_target(doc add_custom_target(doc
COMMAND ${DOXYGEN_EXECUTABLE} ${SOURCE_DIR}/wmfs.doxygen COMMAND ${DOXYGEN_EXECUTABLE} ${SOURCE_DIR}/wmfs.doxygen
WORKING_DIRECTORY ${BUILD_DIR}) WORKING_DIRECTORY ${BUILD_DIR})
endif() endif()
# }}
find_program(URXVT_EXECUTABLE urxvt)
if(URXVT_EXECUTABLE)
set(WMFS_TERM urxvt)
else()
set(WMFS_TERM xterm)
endif()
# Remplace strings in configs # Remplace strings in configs
set(WMFS_VERSION ${VERSION}) set(WMFS_VERSION ${VERSION})
@ -193,7 +198,8 @@ set(WMFS_SOURCE_DIR ${SOURCE_DIR})
# Configure files # Configure files
set(wmfs_configure_files set(wmfs_configure_files
src/config.h.in src/config.h.in
wmfs.doxygen.in) wmfs.doxygen.in
wmfsrc.in)
macro(a_configure_file file) macro(a_configure_file file)
string(REGEX REPLACE ".in\$" "" outfile ${file}) string(REGEX REPLACE ".in\$" "" outfile ${file})

View File

@ -5,7 +5,7 @@
alias alias
{ {
alias term { content = "urxvt" } alias term { content = "@WMFS_TERM@" }
} }
misc misc
@ -166,7 +166,7 @@ launcher
{ {
name = "launcher_ssh" name = "launcher_ssh"
prompt = "ssh to: " prompt = "ssh to: "
command = "urxvt -e ssh" command = "@WMFS_TERM@ -e ssh"
} }
} }