Skip to content
Snippets Groups Projects
Commit 9711929a authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Install to subfolder. Add plural cmake variables. Add gitignore

Modified the necessary files to save the headers, the library and all the related files on the subdirectory iri/<package_name>
Add plural _INCLUDE_DIRS and _LIBRARIES find cmake variables.
Add .gitignore file to ignore bin, build and lib directories
parent 3f303920
No related branches found
No related tags found
No related merge requests found
bin
build
lib
src/xml/*.hxx
src/xml/*.cxx
#edit the following line to add the librarie's header files #edit the following line to add the librarie's header files
FIND_PATH(segway_head_INCLUDE_DIR segway_head.h /usr/include/iridrivers /usr/local/include/iridrivers) FIND_PATH(segway_head_INCLUDE_DIRS segway_head.h /usr/include/iri/segway_head /usr/local/include/iri/segway_head)
FIND_LIBRARY(segway_head_LIBRARY FIND_LIBRARY(segway_head_LIBRARIES
NAMES segway_head NAMES segway_head
PATHS /usr/lib /usr/local/lib /usr/local/lib/iridrivers) PATHS /usr/lib /usr/local/lib /usr/local/lib/iri/segway_head)
IF (segway_head_INCLUDE_DIR AND segway_head_LIBRARY) SET(segway_head_INCLUDE_DIR ${segway_head_INCLUDE_DIRS})
SET(segway_head_LIBRARY ${segway_head_LIBRARIES})
IF (segway_head_INCLUDE_DIRS AND segway_head_LIBRARIES)
SET(segway_head_FOUND TRUE) SET(segway_head_FOUND TRUE)
ENDIF (segway_head_INCLUDE_DIR AND segway_head_LIBRARY) ENDIF (segway_head_INCLUDE_DIRS AND segway_head_LIBRARIES)
IF (segway_head_FOUND) IF (segway_head_FOUND)
IF (NOT segway_head_FIND_QUIETLY) IF (NOT segway_head_FIND_QUIETLY)
MESSAGE(STATUS "Found segway_head: ${segway_head_LIBRARY}") MESSAGE(STATUS "Found segway_head: ${segway_head_LIBRARIES}")
ENDIF (NOT segway_head_FIND_QUIETLY) ENDIF (NOT segway_head_FIND_QUIETLY)
ELSE (segway_head_FOUND) ELSE (segway_head_FOUND)
IF (segway_head_FIND_REQUIRED) IF (segway_head_FIND_REQUIRED)
......
...@@ -26,11 +26,11 @@ ADD_DEPENDENCIES(segway_head xsd_files_gen) ...@@ -26,11 +26,11 @@ ADD_DEPENDENCIES(segway_head xsd_files_gen)
INSTALL(TARGETS segway_head INSTALL(TARGETS segway_head
RUNTIME DESTINATION bin RUNTIME DESTINATION bin
LIBRARY DESTINATION lib/iridrivers LIBRARY DESTINATION lib/iri/${PROJECT_NAME}
ARCHIVE DESTINATION lib/iridrivers ARCHIVE DESTINATION lib/iri/${PROJECT_NAME}
) )
INSTALL(FILES ${headers} DESTINATION include/iridrivers) INSTALL(FILES ${headers} DESTINATION include/iri/${PROJECT_NAME})
INSTALL(FILES ../Findsegway_head.cmake DESTINATION ${CMAKE_ROOT}/Modules/) INSTALL(FILES ../Findsegway_head.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
......
...@@ -39,7 +39,7 @@ IF(XSD_FOUND) ...@@ -39,7 +39,7 @@ IF(XSD_FOUND)
DEPENDS ${XSD_PATH_FILES} DEPENDS ${XSD_PATH_FILES}
COMMENT "Parsing the xml template file ${XSD_FILES}") COMMENT "Parsing the xml template file ${XSD_FILES}")
INSTALL(FILES ${XSD_PATH_FILES} DESTINATION include/iridrivers/xml) INSTALL(FILES ${XSD_PATH_FILES} DESTINATION include/iri/${PROJECT_NAME}/xml)
INSTALL(FILES ${XSD_HEADERS_INT} DESTINATION include/iridrivers/xml) INSTALL(FILES ${XSD_HEADERS_INT} DESTINATION include/iri/${PROJECT_NAME}/xml)
ENDIF(XSD_FILES) ENDIF(XSD_FILES)
ENDIF(XSD_FOUND) ENDIF(XSD_FOUND)
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