@@ -27,7 +27,7 @@ include_directories(
2727)
2828
2929# needed to circumvent LD_LIBRARY_PATH being emptied through ethercat_grant
30- # in addition to not propagating march_hardware_interface RUNPATH to dependencies, in contrast to RPATH
30+ # in addition to not propagating march_hardware RUNPATH to dependencies, in contrast to RPATH
3131set (GCC_NEWDTAGS_LINK_FLAGS "-Wl,--disable-new-dtags" )
3232set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${GCC_NEWDTAGS_LINK_FLAGS} " )
3333
@@ -38,32 +38,52 @@ if(CATKIN_ENABLE_TESTING AND ENABLE_COVERAGE_TESTING)
3838endif ()
3939
4040add_library (${PROJECT_NAME}
41- include /${PROJECT_NAME} /encoder/AbsoluteEncoder .h
42- include /${PROJECT_NAME} /encoder/Encoder .h
43- include /${PROJECT_NAME} /encoder/IncrementalEncoder .h
41+ include /${PROJECT_NAME} /encoder/absolute_encoder .h
42+ include /${PROJECT_NAME} /encoder/encoder .h
43+ include /${PROJECT_NAME} /encoder/incremental_encoder .h
4444 include /${PROJECT_NAME} /error/error_type.h
4545 include /${PROJECT_NAME} /error/hardware_exception.h
4646 include /${PROJECT_NAME} /error/motion_error.h
47- src/EtherCAT/EthercatIO.cpp
48- src/EtherCAT/EthercatMaster.cpp
49- src/EtherCAT/EthercatSDO.cpp
50- src/HighVoltage.cpp
51- src/IMotionCube.cpp
52- src/IMotionCubeTargetState.cpp
53- src/Joint.cpp
54- src/LowVoltage.cpp
55- src/MarchRobot.cpp
56- src/PDOmap.cpp
57- src/PowerDistributionBoard.cpp
58- src/TemperatureGES.cpp
59- src/encoder/AbsoluteEncoder.cpp
60- src/encoder/Encoder.cpp
61- src/encoder/IncrementalEncoder.cpp
47+ include /${PROJECT_NAME} /ethercat/ethercat_master.h
48+ include /${PROJECT_NAME} /ethercat/pdo_interface.h
49+ include /${PROJECT_NAME} /ethercat/pdo_map.h
50+ include /${PROJECT_NAME} /ethercat/pdo_types.h
51+ include /${PROJECT_NAME} /ethercat/sdo_interface.h
52+ include /${PROJECT_NAME} /ethercat/slave.h
53+ include /${PROJECT_NAME} /imotioncube/actuation_mode.h
54+ include /${PROJECT_NAME} /imotioncube/imotioncube.h
55+ include /${PROJECT_NAME} /imotioncube/imotioncube_state.h
56+ include /${PROJECT_NAME} /imotioncube/imotioncube_target_state.h
57+ include /${PROJECT_NAME} /joint.h
58+ include /${PROJECT_NAME} /march_robot.h
59+ include /${PROJECT_NAME} /power/boot_shutdown_offsets.h
60+ include /${PROJECT_NAME} /power/high_voltage.h
61+ include /${PROJECT_NAME} /power/low_voltage.h
62+ include /${PROJECT_NAME} /power/net_driver_offsets.h
63+ include /${PROJECT_NAME} /power/net_monitor_offsets.h
64+ include /${PROJECT_NAME} /power/power_distribution_board.h
65+ include /${PROJECT_NAME} /temperature/temperature_ges.h
66+ include /${PROJECT_NAME} /temperature/temperature_sensor.h
67+ src/encoder/absolute_encoder.cpp
68+ src/encoder/encoder.cpp
69+ src/encoder/incremental_encoder.cpp
6270 src/error/error_type.cpp
6371 src/error/motion_error.cpp
72+ src/ethercat/ethercat_master.cpp
73+ src/ethercat/pdo_interface.cpp
74+ src/ethercat/pdo_map.cpp
75+ src/ethercat/sdo_interface.cpp
76+ src/imotioncube/imotioncube.cpp
77+ src/imotioncube/imotioncube_target_state.cpp
78+ src/joint.cpp
79+ src/march_robot.cpp
80+ src/power/high_voltage.cpp
81+ src/power/low_voltage.cpp
82+ src/power/power_distribution_board.cpp
83+ src/temperature/temperature_ges.cpp
6484)
6585
66- target_link_libraries (${PROJECT_NAME} ${catkin_LIBRARIES} )
86+ target_link_libraries (${PROJECT_NAME} ${catkin_LIBRARIES} pthread )
6787
6888add_executable (slave_count_check check/slave_count.cpp)
6989target_link_libraries (slave_count_check ${PROJECT_NAME} )
@@ -93,29 +113,32 @@ install(DIRECTORY launch
93113## Add gtest based cpp test target and link libraries
94114if (CATKIN_ENABLE_TESTING)
95115 catkin_add_gmock(${PROJECT_NAME} _test
96- test /TestBootShutdownOffsets.cpp
97- test /TestHighVoltage.cpp
98- test /TestIMotionCube.cpp
99- test /TestJoint.cpp
100- test /TestLowVoltage.cpp
101- test /TestNetDriverOffsets.cpp
102- test /TestNetMonitorOffsets.cpp
103- test /TestPDOmap.cpp
104- test /TestPowerDistributionBoard.cpp
105- test /TestRunner.cpp
106- test /TestTemperatureGES.cpp
107- test /encoder/TestAbsoluteEncoder.cpp
108- test /encoder/TestIncrementalEncoder.cpp
109- test /encoder/TestEncoder.cpp
110- test /error/test_hardware_exception.cpp
111- test /error/test_motion_error.cpp
112- test /mocks/MockAbsoluteEncoder.cpp
113- test /mocks/MockEncoder.cpp
114- test /mocks/MockIMotionCube.cpp
115- test /mocks/MockIncrementalEncoder.cpp
116- test /mocks/MockJoint.cpp
117- test /mocks/MockTemperatureGES.cpp
118- test /mocks/MockTemperatureSensor.cpp
116+ test /encoder/absolute_encoder_test.cpp
117+ test /encoder/encoder_test.cpp
118+ test /encoder/incremental_encoder_test.cpp
119+ test /error/hardware_exception_test.cpp
120+ test /error/motion_error_test.cpp
121+ test /ethercat/pdo_map_test.cpp
122+ test /ethercat/slave_test.cpp
123+ test /imotioncube/imotioncube_test.cpp
124+ test /joint_test.cpp
125+ test /mocks/mock_absolute_encoder.h
126+ test /mocks/mock_encoder.h
127+ test /mocks/mock_imotioncube.h
128+ test /mocks/mock_incremental_encoder.h
129+ test /mocks/mock_joint.h
130+ test /mocks/mock_pdo_interface.h
131+ test /mocks/mock_sdo_interface.h
132+ test /mocks/mock_slave.h
133+ test /mocks/mock_temperature_ges.h
134+ test /power/boot_shutdown_offsets_test.cpp
135+ test /power/high_voltage_test.cpp
136+ test /power/low_voltage_test.cpp
137+ test /power/net_driver_offsets_test.cpp
138+ test /power/net_monitor_offsets_test.cpp
139+ test /power/power_distribution_board_test.cpp
140+ test /temperature/temperature_ges_test.cpp
141+ test /test_runner.cpp
119142 )
120143 target_link_libraries (${PROJECT_NAME} _test ${catkin_LIBRARIES} ${PROJECT_NAME} )
121144
0 commit comments