summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-20 12:44:45 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-20 12:44:45 +0000
commitd32b0760ee2184ee6281e40d134aacbc5d395f77 (patch)
tree754e27a82c3df1ef6b17f5900b5f624b5e0f89fd /CMakeLists.txt
parent16db388d019dba0dcae16004c5529d5ee0760b3a (diff)
Add targets to build documentation with instructions.
Change-Id: I037ab5d94e17147aba998131e92c1ec920293fa9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
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 233ee69..05fbd5f 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