aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 233ee695..05fbd5fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,3 +20,29 @@
cmake_minimum_required(VERSION 3.3)
project(low-can-binding)
add_subdirectory(src)
+
+add_custom_command(
+ OUTPUT ${PROJECT_NAME}.pdf
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND gitbook install
+ COMMAND gitbook pdf docs ${PROJECT_NAME}.pdf
+)
+add_custom_target(pdf
+ DEPENDS ${PROJECT_NAME}.pdf)
+
+add_custom_command(
+ OUTPUT _book
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND gitbook install
+ COMMAND gitbook serve
+)
+add_custom_target(serve
+ DEPENDS _book)
+
+add_custom_command(
+ OUTPUT docs_doxygen
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ COMMAND doxygen CAN_signaling.doxygen
+)
+add_custom_target(doxygen
+ DEPENDS docs_doxygen) \ No newline at end of file