X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=2a97f85dafedccf1b4ce31a253c19b3bd937a9b2;hb=32e25cbca210a359b09768537b6f443fe90a3070;hp=05fbd5fcca33f6c4a07a41aceb039d724a52f7c4;hpb=d32b0760ee2184ee6281e40d134aacbc5d395f77;p=apps%2Fagl-service-can-low-level.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 05fbd5fc..2a97f85d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,7 @@ ########################################################################### -# Copyright 2016 IoT.bzh +# Copyright 2015, 2016, 2017 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,16 @@ # 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) +include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/config.cmake) +include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/app-templates/cmake/common.cmake) -add_custom_command( - OUTPUT _book - WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} - COMMAND gitbook install - COMMAND gitbook serve -) -add_custom_target(serve - DEPENDS _book) +# Bindings to compile +# -------------------- +project_subdirs_add() -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 +project_targets_populate() +project_package_build() + +project_closing_msg()