Skip to content

Commit ebb7f37

Browse files
committed
Fixes cpack debian check error
1 parent 99a5bd9 commit ebb7f37

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
1919

2020
project (MODBUSPP)
21-
set (PROJECT_DESCRIPTION "libmodbuspp C++ wrapper for the libmodbus library")
21+
set (PROJECT_DESCRIPTION "C++ wrapper for the libmodbus library")
2222
set (PROJECT_DESCRIPTION_TEXT "\
23-
A C++ wrapper for the libmodbus library, to send/receive data with a device which\n\
24-
respects the Modbus protocol. This library can use a serial port or an\n\
25-
Ethernet connection."
23+
A C++ wrapper for the libmodbus library, to send/receive data with a device which\n\
24+
respects the Modbus protocol. This library can use a serial port or an\n\
25+
Ethernet connection."
2626
)
2727

2828
# library for the Modbus protocol

dev/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,3 @@ install (DIRECTORY codelite/executable-modbuspp
3232
COMPONENT dev
3333
)
3434

35-
# Examples
36-
install(DIRECTORY ${PROJECT_SOURCE_DIR}/examples/
37-
DESTINATION ${MODBUSPP_INSTALL_EXAMPLES_DIR}
38-
COMPONENT dev
39-
FILES_MATCHING PATTERN "*.c" PATTERN "*.cpp" PATTERN "*.project" PATTERN "*.workspace" PATTERN "CMakeLists.txt"
40-
PATTERN ".clang/" EXCLUDE
41-
PATTERN ".codelite/" EXCLUDE
42-
PATTERN "cmake-build*/" EXCLUDE)
43-

doc/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,21 @@ if (MODBUSPP_WITH_DOXYGEN_DOC)
7373
#message("MODBUSPP_INSTALL_DOC_DIR=${MODBUSPP_INSTALL_DOC_DIR}")
7474
#message("INSTALL_DATA_DIR=${INSTALL_DATA_DIR}")
7575

76+
# API documentation
7677
install(DIRECTORY ${CMAKE_BINARY_DIR}/html/
7778
DESTINATION ${MODBUSPP_INSTALL_DOC_DIR}/api-manual COMPONENT doc)
79+
80+
# manpages
7881
install(FILES ${manpages}
7982
DESTINATION "${INSTALL_DATA_DIR}/man/man3" COMPONENT doc)
8083

84+
# Examples
85+
install(DIRECTORY ${PROJECT_SOURCE_DIR}/examples/
86+
DESTINATION ${MODBUSPP_INSTALL_EXAMPLES_DIR}
87+
COMPONENT doc
88+
FILES_MATCHING PATTERN "*.c" PATTERN "*.cpp" PATTERN "*.project" PATTERN "*.workspace" PATTERN "CMakeLists.txt"
89+
PATTERN ".clang/" EXCLUDE
90+
PATTERN ".codelite/" EXCLUDE
91+
PATTERN "cmake-build*/" EXCLUDE)
92+
8193
endif(MODBUSPP_WITH_DOXYGEN_DOC)

0 commit comments

Comments
 (0)