Skip to content
Snippets Groups Projects
Commit 9dadb517 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Resolve "remove `vision_utils/` from the path found by Findvision_utils"

parent 119ac806
No related branches found
No related tags found
1 merge request!7Resolve "remove `vision_utils/` from the path found by Findvision_utils"
......@@ -96,8 +96,8 @@ To do that, execute
make install
```
as root and the shared libraries will be copied to `/usr/local/lib/<vision_utils>` directory
and the header files will be copied to `/usr/local/include/<vision_utils>` directory. At
as root and the shared libraries will be copied to `/usr/local/lib` directory
and the header files will be copied to `/usr/local/include/vision_utils` directory. At
this point, the library may be used by any user.
To remove the library from the system, exceute
......
#edit the following line to add the librarie's header files
FIND_PATH(vision_utils_INCLUDE_DIR vision_utils.h /usr/include/vision_utils /usr/local/include/vision_utils)
#change INCLUDE_DIRS to its parent directory
get_filename_component(vision_utils_INCLUDE_DIR ${vision_utils_INCLUDE_DIR} DIRECTORY)
FIND_LIBRARY(vision_utils_LIBRARY
NAMES vision_utils
PATHS /usr/lib /usr/local/lib /usr/local/lib/vision_utils)
PATHS /usr/lib /usr/local/lib)
IF (vision_utils_INCLUDE_DIR AND vision_utils_LIBRARY)
SET(vision_utils_FOUND TRUE)
SET(vision_utils_INCLUDE_DIRS ${vision_utils_INCLUDE_DIR})
SET(vision_utils_LIBRARIES ${vision_utils_LIBRARY})
ENDIF (vision_utils_INCLUDE_DIR AND vision_utils_LIBRARY)
IF (vision_utils_FOUND)
......
......@@ -266,8 +266,8 @@ ENDIF (YAMLCPP_FOUND)
# install
INSTALL(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/${PROJECT_NAME}
ARCHIVE DESTINATION lib/${PROJECT_NAME})
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
INSTALL(FILES ${headers_main} DESTINATION include/${PROJECT_NAME})
INSTALL(FILES ${headers_com} DESTINATION include/${PROJECT_NAME}/common_class)
INSTALL(FILES ${headers_sen} DESTINATION include/${PROJECT_NAME}/sensors)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment