aboutsummaryrefslogtreecommitdiffstats
path: root/can-config-generator/CMakeLists.txt
blob: 8eb40d550f4a4edb1f2dc42367ee427bcd726141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)