Cleanup CMake files

- Replace tabs with spaces
- Use lowercase for CMake commands
- Unify alignment
- Remove superfluous empty line
- Add space after CMake command

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2023-05-26 09:50:40 +02:00
parent 81bc57309b
commit 20a8a4a4cc
8 changed files with 51 additions and 42 deletions

View file

@ -72,4 +72,3 @@ set_property (TARGET timew_executable PROPERTY OUTPUT_NAME "timew")
set_property (TARGET lex_executable PROPERTY OUTPUT_NAME "lex")
install (TARGETS timew_executable DESTINATION bin)

View file

@ -7,15 +7,14 @@ include_directories (${CMAKE_SOURCE_DIR}
set (ADDITIONAL_HELP_H "additional-help.h")
ADD_CUSTOM_COMMAND (
OUTPUT ${ADDITIONAL_HELP_H}
COMMAND /bin/sh src/commands/generate-additional-help.sh > src/commands/${ADDITIONAL_HELP_H}
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/generate-additional-help.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Generating ${ADDITIONAL_HELP_H}")
add_custom_command (OUTPUT ${ADDITIONAL_HELP_H}
COMMAND /bin/sh src/commands/generate-additional-help.sh > src/commands/${ADDITIONAL_HELP_H}
DEPENDS ${CMAKE_CURRENT_LIST_DIR}/generate-additional-help.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMENT "Generating ${ADDITIONAL_HELP_H}")
ADD_CUSTOM_TARGET (generate_additional_help
DEPENDS ${ADDITIONAL_HELP_H})
add_custom_target (generate_additional_help
DEPENDS ${ADDITIONAL_HELP_H})
set (commands_SRCS CmdAnnotate.cpp
CmdCancel.cpp