@@ -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,33 +38,49 @@ if(CATKIN_ENABLE_TESTING AND ENABLE_COVERAGE_TESTING)
3838endif ()
3939
4040add_library (${PROJECT_NAME}
41- include /${PROJECT_NAME} /EtherCAT/pdo_interface.h
42- include /${PROJECT_NAME} /EtherCAT/pdo_types.h
43- include /${PROJECT_NAME} /EtherCAT/sdo_interface.h
44- include /${PROJECT_NAME} /EtherCAT/slave.h
45- include /${PROJECT_NAME} /encoder/AbsoluteEncoder.h
46- include /${PROJECT_NAME} /encoder/Encoder.h
47- 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
4844 include /${PROJECT_NAME} /error/error_type.h
4945 include /${PROJECT_NAME} /error/hardware_exception.h
5046 include /${PROJECT_NAME} /error/motion_error.h
51- src/EtherCAT/EthercatMaster.cpp
52- src/EtherCAT/pdo_interface.cpp
53- src/EtherCAT/sdo_interface.cpp
54- src/HighVoltage.cpp
55- src/IMotionCube.cpp
56- src/IMotionCubeTargetState.cpp
57- src/Joint.cpp
58- src/LowVoltage.cpp
59- src/MarchRobot.cpp
60- src/PDOmap.cpp
61- src/PowerDistributionBoard.cpp
62- src/TemperatureGES.cpp
63- src/encoder/AbsoluteEncoder.cpp
64- src/encoder/Encoder.cpp
65- 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
6670 src/error/error_type.cpp
6771 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
6884)
6985
7086target_link_libraries (${PROJECT_NAME} ${catkin_LIBRARIES} pthread)
@@ -97,32 +113,32 @@ install(DIRECTORY launch
97113## Add gtest based cpp test target and link libraries
98114if (CATKIN_ENABLE_TESTING)
99115 catkin_add_gmock(${PROJECT_NAME} _test
100- test /TestBootShutdownOffsets .cpp
101- test /TestHighVoltage .cpp
102- test /TestIMotionCube .cpp
103- test /TestJoint .cpp
104- test /TestLowVoltage .cpp
105- test /TestNetDriverOffsets .cpp
106- test /TestNetMonitorOffsets .cpp
107- test /TestPDOmap .cpp
108- test /TestPowerDistributionBoard .cpp
109- test /TestRunner.cpp
110- test /TestSlave.cpp
111- test /TestTemperatureGES.cpp
112- test /encoder/TestAbsoluteEncoder.cpp
113- test /encoder/TestIncrementalEncoder.cpp
114- test /encoder/TestEncoder.cpp
115- test /error/test_hardware_exception.cpp
116- test /error/test_motion_error.cpp
117- test /mocks/MockAbsoluteEncoder .h
118- test /mocks/MockEncoder.h
119- test /mocks/MockIMotionCube.h
120- test /mocks/MockIncrementalEncoder.h
121- test /mocks/MockJoint.h
122- test /mocks/MockPdoInterface.h
123- test /mocks/MockSdoInterface.h
124- test /mocks/MockSlave.h
125- test /mocks/MockTemperatureGES.h
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
126142 )
127143 target_link_libraries (${PROJECT_NAME} _test ${catkin_LIBRARIES} ${PROJECT_NAME} )
128144
0 commit comments