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

Add gitignore, gitlab ci file, moved headers to include folder

parent d03b3aa4
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ IF (UNIX) ...@@ -86,7 +86,7 @@ IF (UNIX)
# Uncomment to add dependencies comma separated # Uncomment to add dependencies comma separated
# SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-<package_name>-dev (>= 1.0~${DISTRIB})") # SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-<package_name>-dev (>= 1.0~${DISTRIB})")
SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-iriutils-dev (>= 1.0~${DISTRIB}), iri-comm-dev (>= 1.0~${DISTRIB})") SET(CPACK_DEBIAN_PACKAGE_DEPENDS "iri-iriutils-dev (>= 1.0~${DISTRIB}), iri-comm-dev (>= 1.0~${DISTRIB}), iri-segway-rmp-200 (>= 1.0~${DISTRIB})")
INCLUDE(CPack) INCLUDE(CPack)
ELSE(UNIX) ELSE(UNIX)
...@@ -94,4 +94,4 @@ IF (UNIX) ...@@ -94,4 +94,4 @@ IF (UNIX)
COMMENT "packaging only implemented in unix" COMMENT "packaging only implemented in unix"
TARGET uninstall TARGET uninstall
) )
ENDIF(UNIX) ENDIF(UNIX)
\ No newline at end of file
File moved
File moved
# edit the following line to add all the source code files of the library # edit the following line to add all the source code files of the library
SET(sources segway_RMP400.cpp segway_RMP400_exception.cpp) SET(sources segway_RMP400.cpp segway_RMP400_exception.cpp)
# edit the following line to add all the header files of the library # edit the following line to add all the header files of the library
SET(headers segway_RMP400.h segway_RMP400_exception.h) SET(headers ../include/segway_RMP400.h ../include/segway_RMP400_exception.h)
# edit the following line to find the necessary packages # edit the following line to find the necessary packages
FIND_PACKAGE(iriutils REQUIRED) FIND_PACKAGE(iriutils REQUIRED)
...@@ -9,25 +9,25 @@ FIND_PACKAGE(comm REQUIRED) ...@@ -9,25 +9,25 @@ FIND_PACKAGE(comm REQUIRED)
FIND_PACKAGE(segway_rmp_200 REQUIRED) FIND_PACKAGE(segway_rmp_200 REQUIRED)
# edit the following line to add the necessary include directories # edit the following line to add the necessary include directories
INCLUDE_DIRECTORIES(.) INCLUDE_DIRECTORIES(../include)
INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${comm_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${comm_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${segway_rmp_200_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${segway_rmp_200_INCLUDE_DIRS})
ADD_LIBRARY(segway_rmp_400 SHARED ${sources}) ADD_LIBRARY(segway_rmp_400 SHARED ${sources})
#edit the following line to add the necessary system libraries (if any) #edit the following line to add the necessary system libraries (if any)
TARGET_LINK_LIBRARIES(segway_rmp_400 ${iriutils_LIBRARY}) TARGET_LINK_LIBRARIES(segway_rmp_400 ${iriutils_LIBRARIES})
TARGET_LINK_LIBRARIES(segway_rmp_400 ${comm_LIBRARY}) TARGET_LINK_LIBRARIES(segway_rmp_400 ${comm_LIBRARIES})
TARGET_LINK_LIBRARIES(segway_rmp_400 ${segway_rmp_200_LIBRARY}) TARGET_LINK_LIBRARIES(segway_rmp_400 ${segway_rmp_200_LIBRARIES})
INSTALL(TARGETS segway_rmp_400 INSTALL(TARGETS segway_rmp_400
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_rmp_400.cmake DESTINATION ${CMAKE_ROOT}/Modules/) INSTALL(FILES ../Findsegway_rmp_400.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
......
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