|
1 | | -cmake_minimum_required(VERSION 3.0.2) |
| 1 | +cmake_minimum_required(VERSION 3.14.0) |
2 | 2 | project(ur_driver_examples) |
3 | 3 |
|
4 | 4 | # find_package(ur_client_library REQUIRED) |
5 | 5 |
|
6 | | -# # |
7 | | -# # Check C++11 support / enable global pedantic and Wall |
8 | | -# # |
9 | | -include(DefineCXX17CompilerFlag) |
10 | | -DEFINE_CXX_17_COMPILER_FLAG(CXX17_FLAG) |
11 | | -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic") |
12 | 6 |
|
13 | 7 | add_executable(driver_example |
14 | 8 | full_driver.cpp) |
15 | | -target_compile_options(driver_example PUBLIC ${CXX17_FLAG}) |
16 | 9 | target_link_libraries(driver_example ur_client_library::urcl) |
17 | 10 |
|
18 | 11 | add_executable(primary_pipeline_example |
19 | 12 | primary_pipeline.cpp) |
20 | | -target_compile_options(primary_pipeline_example PUBLIC ${CXX17_FLAG}) |
21 | 13 | target_link_libraries(primary_pipeline_example ur_client_library::urcl) |
22 | 14 |
|
23 | 15 | add_executable(primary_pipeline_calibration_example |
24 | 16 | primary_pipeline_calibration.cpp) |
25 | | -target_compile_options(primary_pipeline_calibration_example PUBLIC ${CXX17_FLAG}) |
26 | 17 | target_link_libraries(primary_pipeline_calibration_example ur_client_library::urcl) |
27 | 18 |
|
28 | 19 | add_executable(rtde_client_example |
29 | 20 | rtde_client.cpp) |
30 | | -target_compile_options(rtde_client_example PUBLIC ${CXX17_FLAG}) |
31 | 21 | target_link_libraries(rtde_client_example ur_client_library::urcl) |
32 | 22 |
|
33 | 23 | add_executable(dashboard_example |
34 | 24 | dashboard_example.cpp) |
35 | | -target_compile_options(dashboard_example PUBLIC ${CXX17_FLAG}) |
36 | 25 | target_link_libraries(dashboard_example ur_client_library::urcl) |
37 | 26 |
|
38 | 27 | add_executable(spline_example |
39 | 28 | spline_example.cpp) |
40 | | -target_compile_options(spline_example PUBLIC ${CXX17_FLAG}) |
41 | 29 | target_link_libraries(spline_example ur_client_library::urcl) |
42 | 30 |
|
43 | 31 | add_executable(tool_contact_example |
44 | 32 | tool_contact_example.cpp) |
45 | | -target_compile_options(tool_contact_example PUBLIC ${CXX17_FLAG}) |
46 | 33 | target_link_libraries(tool_contact_example ur_client_library::urcl) |
47 | 34 |
|
48 | 35 | add_executable(freedrive_example |
49 | 36 | freedrive_example.cpp) |
50 | | -target_compile_options(freedrive_example PUBLIC ${CXX17_FLAG}) |
51 | 37 | target_link_libraries(freedrive_example ur_client_library::urcl) |
52 | 38 |
|
53 | 39 | add_executable(force_mode_example |
54 | 40 | force_mode_example.cpp) |
55 | | -target_compile_options(force_mode_example PUBLIC ${CXX17_FLAG}) |
56 | 41 | target_link_libraries(force_mode_example ur_client_library::urcl) |
57 | 42 |
|
58 | 43 | add_executable(script_sender_example |
59 | 44 | script_sender.cpp) |
60 | | -target_compile_options(script_sender_example PUBLIC ${CXX17_FLAG}) |
61 | 45 | target_link_libraries(script_sender_example ur_client_library::urcl) |
62 | 46 |
|
63 | 47 | add_executable(trajectory_point_interface_example |
64 | 48 | trajectory_point_interface.cpp) |
65 | | -target_compile_options(trajectory_point_interface_example PUBLIC ${CXX17_FLAG}) |
66 | 49 | target_link_libraries(trajectory_point_interface_example ur_client_library::urcl) |
0 commit comments