diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-11 15:49:47 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-11 15:49:47 +0200 |
commit | a58d40b5ae336a54408201963b065ee049b43acd (patch) | |
tree | 9769e3d5b624e0238fe550df601e5382f259c52e /can-config-generator/CMakeLists.txt | |
parent | 9e444ade872bc436cf12bc12d03c3a5d51ac0b9e (diff) | |
parent | b7591d16c2686214d5d8dcc0739a233f15aee5db (diff) |
Add 'can-config-generator/' from commit 'b7591d16c2686214d5d8dcc0739a233f15aee5db'
git-subtree-dir: can-config-generator
git-subtree-mainline: 9e444ade872bc436cf12bc12d03c3a5d51ac0b9e
git-subtree-split: b7591d16c2686214d5d8dcc0739a233f15aee5db
Diffstat (limited to 'can-config-generator/CMakeLists.txt')
-rw-r--r-- | can-config-generator/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/can-config-generator/CMakeLists.txt b/can-config-generator/CMakeLists.txt new file mode 100644 index 00000000..8eb40d55 --- /dev/null +++ b/can-config-generator/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.3)
+project(can-config-generator)
+
+if (CMAKE_VERSION VERSION_LESS "3.1")
+ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+ set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
+ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
+ set (CMAKE_CXX_FLAGS "--std=c++11 ${CMAKE_CXX_FLAGS}")
+ endif ()
+else ()
+ set (CMAKE_CXX_STANDARD 11)
+endif ()
+
+include_directories(SYSTEM 3rdparty/json)
+
+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)
+target_compile_features(can-config-generator PRIVATE cxx_range_for cxx_constexpr cxx_nullptr)
|