X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=8970eb5675efafd2ed7bef8e146fe55bb004c742;hb=45514381c51ec65b1a2d05264a30a4d468348748;hp=05fbd5fcca33f6c4a07a41aceb039d724a52f7c4;hpb=d32b0760ee2184ee6281e40d134aacbc5d395f77;p=apps%2Fagl-service-can-low-level.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 05fbd5fc..8970eb56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,7 @@ ########################################################################### -# Copyright 2016 IoT.bzh +# Copyright 2015 - 2018 IoT.bzh # -# author: José Bollo -# author: Stéphane Desneux +# author: Romain Forlot # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -17,32 +16,8 @@ # 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)