Restore /etc/dev-mapping.conf support
[apps/agl-service-can-low-level.git] / CMakeLists.txt
index 05fbd5f..8970eb5 100644 (file)
@@ -1,8 +1,7 @@
 ###########################################################################
-# Copyright 2016 IoT.bzh
+# Copyright 2015 - 2018 IoT.bzh
 #
-# author: José Bollo <jose.bollo@iot.bzh>
-# author: Stéphane Desneux <stephane.desneux@iot.bzh>
+# author: Romain Forlot <romain.forlot@iot.bzh>
 #
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # limitations under the License.
 ###########################################################################
 
-cmake_minimum_required(VERSION 3.3)
-project(low-can-binding)
-add_subdirectory(src)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.3)
 
-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
+include(CTest)
+enable_testing()
+include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/cmake/config.cmake)