summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2017-03-15 02:36:22 +0100
committerLoïc Collignon <loic.collignon@iot.bzh>2017-03-15 02:36:22 +0100
commitf2487f0b481fae4aa1561e82e8e4aa5b8d0654a0 (patch)
tree7bfc1b140af1e922fc14ba3a02c042b69f24c128 /CMakeLists.txt
parent00655ea12cc870b84291e462ff791461cc500d68 (diff)
initial commit.
Change-Id: I5e639061c99b7cc6da3da06ccf19bde683a69e9f Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rwxr-xr-xCMakeLists.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100755
index 00000000..f7e999eb
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,25 @@
+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()