CMakeLists.txt 1.27 KB
Newer Older
Guillem Alenyà's avatar
Guillem Alenyà committed
1
2
3
# edit the following line to add all the source code files of the library
SET(sources segway_RMP400.cpp segway_RMP400_exception.cpp)
# edit the following line to add all the header files of the library
4
SET(headers ../include/segway_RMP400.h ../include/segway_RMP400_exception.h)
Guillem Alenyà's avatar
Guillem Alenyà committed
5
6
7
8
9
10
11

# edit the following line to find the necessary packages
FIND_PACKAGE(iriutils REQUIRED)
FIND_PACKAGE(comm REQUIRED)
FIND_PACKAGE(segway_rmp_200 REQUIRED)

# edit the following line to add the necessary include directories
12
13
14
15
INCLUDE_DIRECTORIES(../include)
INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${comm_INCLUDE_DIRS})
INCLUDE_DIRECTORIES(${segway_rmp_200_INCLUDE_DIRS})
Guillem Alenyà's avatar
Guillem Alenyà committed
16
17
18
19

ADD_LIBRARY(segway_rmp_400 SHARED ${sources})

#edit the following line to add the necessary system libraries (if any)
20
21
22
TARGET_LINK_LIBRARIES(segway_rmp_400 ${iriutils_LIBRARIES})
TARGET_LINK_LIBRARIES(segway_rmp_400 ${comm_LIBRARIES})
TARGET_LINK_LIBRARIES(segway_rmp_400 ${segway_rmp_200_LIBRARIES})
Guillem Alenyà's avatar
Guillem Alenyà committed
23
24
25

INSTALL(TARGETS segway_rmp_400
  RUNTIME DESTINATION bin
26
27
  LIBRARY DESTINATION lib/iri/${PROJECT_NAME}
  ARCHIVE DESTINATION lib/iri/${PROJECT_NAME}
Guillem Alenyà's avatar
Guillem Alenyà committed
28
29
)

30
INSTALL(FILES ${headers} DESTINATION include/iri/${PROJECT_NAME})
Guillem Alenyà's avatar
Guillem Alenyà committed
31
32

INSTALL(FILES ../Findsegway_rmp_400.cmake DESTINATION ${CMAKE_ROOT}/Modules/)
33
34

ADD_SUBDIRECTORY(examples)