diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-11 15:47:26 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-04-11 15:47:26 +0200 |
commit | b7591d16c2686214d5d8dcc0739a233f15aee5db (patch) | |
tree | e89fbc60a99800697c2de2b2876c73de91177e9e /CMakeLists.txt | |
parent | ad366bd680d5ce0bef49242cf6b3902fe46e0141 (diff) |
Remove boost library dependency.
Use a simple optarg parser.
Change-Id: If0cd9da9db24a7889573e32f6b8ace33702c2c35
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a2f5bf2..8eb40d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,21 +13,15 @@ endif () include_directories(SYSTEM 3rdparty/json)
-find_package(Boost REQUIRED COMPONENTS program_options filesystem system)
-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)
- 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()
+target_link_libraries(can-config-generator)
+target_compile_features(can-config-generator PRIVATE cxx_range_for cxx_constexpr cxx_nullptr)
|