X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=8970eb5675efafd2ed7bef8e146fe55bb004c742;hb=b1428786c5968319b6c963d236b78814958de6e3;hp=f7e999eb260c73d2ee315cfaaa8225f03fe8c632;hpb=f2487f0b481fae4aa1561e82e8e4aa5b8d0654a0;p=apps%2Fagl-service-can-low-level.git diff --git a/CMakeLists.txt b/CMakeLists.txt old mode 100755 new mode 100644 index f7e999eb..8970eb56 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,25 +1,23 @@ -cmake_minimum_required(VERSION 3.0) -project(can-config-generator) - -include_directories(SYSTEM 3rdparty/json) - -#add_definitions( -DBOOST_ALL_NO_LIB ) -#set(Boost_USE_STATIC_LIBS ON) -find_package(Boost REQUIRED COMPONENTS program_options filesystem) -if(Boost_FOUND) - add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS}) - include_directories(SYSTEM ${Boost_INCLUDE_DIRS}) - - add_executable(can-config-generator - src/main.cpp - src/openxc/message_set.cpp - src/openxc/can_bus.cpp - src/openxc/can_message.cpp - src/openxc/command.cpp - src/openxc/diagnostic_message.cpp - src/openxc/mapping.cpp - src/openxc/signal.cpp) - - target_link_libraries(can-config-generator ${Boost_LIBRARIES}) - target_compile_features(can-config-generator PRIVATE cxx_range_for cxx_constexpr cxx_nullptr) -endif() +########################################################################### +# Copyright 2015 - 2018 IoT.bzh +# +# 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. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +########################################################################### + +CMAKE_MINIMUM_REQUIRED(VERSION 3.3) + +include(CTest) +enable_testing() +include(${CMAKE_CURRENT_SOURCE_DIR}/conf.d/cmake/config.cmake)