CMakeLists. TXT
Include
Darknet
Person_box. H
Lib_emuc2_32. A
Lib_emuc2_64. A
Lib_emuc_2. H
XML package. The
The SRC
The main. CPP
The CMakeLists. TXT content is as follows:
Cmake_minimum_required (VERSION 2.8.3)
Project (can_send)
Find_package (catkin REQUIRED COMPONENTS roscpp std_msgs)
Catkin_package ()
Include_directories (include include/can ${catkin_INCLUDE_DIRS})
Set (path/home/li/can_ws/SRC/can_send/include)
Link_directories (${path})
Link_libraries lib_emuc2_64. (a)
Add_executable (${PROJECT_NAME} _node SRC/main CPP)
# target_link_libraries (${PROJECT_NAME} _node/home/li/can_ws/SRC/can_send/include/lib_emuc2_64. A)
_node target_link_libraries (${PROJECT_NAME}
${catkin_LIBRARIES})#
# target_link_libraries (${PROJECT_NAME} _node
# ${catkin_LIBRARIES})
Don't target_link_libraries find library, prompt function is undefined, use target_link_libraries tip can be made without rules:
CodePudding user response:
Problem has been solved, end this post