CMakeLists.txt 1.66 KB
Newer Older
Séverin Lemaignan's avatar
Séverin Lemaignan committed
1
cmake_minimum_required(VERSION 3.5)
Séverin Lemaignan's avatar
Séverin Lemaignan committed
2
3
project(hri_msgs)

Séverin Lemaignan's avatar
Séverin Lemaignan committed
4
5
6
7
# Default to C99
if(NOT CMAKE_C_STANDARD)
  set(CMAKE_C_STANDARD 99)
endif()
Séverin Lemaignan's avatar
Séverin Lemaignan committed
8

Séverin Lemaignan's avatar
Séverin Lemaignan committed
9
10
11
12
# Default to C++14
if(NOT CMAKE_CXX_STANDARD)
  set(CMAKE_CXX_STANDARD 14)
endif()
Séverin Lemaignan's avatar
Séverin Lemaignan committed
13

Séverin Lemaignan's avatar
Séverin Lemaignan committed
14
15
16
17
18
19
20
21
22
23
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rosidl_default_generators REQUIRED)
find_package(builtin_interfaces REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
Séverin Lemaignan's avatar
Séverin Lemaignan committed
24

Séverin Lemaignan's avatar
Séverin Lemaignan committed
25
26
27
28
29
30
31
32
set(msg_files
    "msg/PointOfInterest2D.msg"
    "msg/FacesLandmarks.msg"
    "msg/FacialLandmarksStamped.msg"
    "msg/Person.msg"
    "msg/Group.msg"
    "msg/ActionUnits.msg"
    "msg/FacesActionUnits.msg"
Séverin Lemaignan's avatar
Séverin Lemaignan committed
33
34
)

Séverin Lemaignan's avatar
Séverin Lemaignan committed
35
36
37
38
39
#file(GLOB msg_files ${PROJECT_SOURCE_DIR}/msg)

set(srv_files
    "srv/SelectHumans.srv"
    "srv/UpdateHuman.srv"
Séverin Lemaignan's avatar
Séverin Lemaignan committed
40
41
)

Séverin Lemaignan's avatar
Séverin Lemaignan committed
42
43
44
45
46
47
48
49
50
rosidl_generate_interfaces(${PROJECT_NAME}
    ${msg_files}
    ${srv_files}
    DEPENDENCIES geometry_msgs std_msgs builtin_interfaces
    ADD_LINTER_TESTS
    )

install(DIRECTORY include/${PROJECT_NAME}/
  DESTINATION include/${PROJECT_NAME}
Séverin Lemaignan's avatar
Séverin Lemaignan committed
51
52
)

Séverin Lemaignan's avatar
Séverin Lemaignan committed
53
54
55
56
57
58
59
60
61
62
63
64
65
if(BUILD_TESTING)
  find_package(ament_lint_auto REQUIRED)
  # the following line skips the linter which checks for copyrights
  # remove the line when a copyright and license is present in all source files
  set(ament_cmake_copyright_FOUND TRUE)
  # the following line skips cpplint (only works in a git repo)
  # remove the line when this package is a git repo
  set(ament_cmake_cpplint_FOUND TRUE)
  ament_lint_auto_find_test_dependencies()
endif()

ament_export_dependencies(rosidl_default_runtime)
ament_export_include_directories(include)
Séverin Lemaignan's avatar
Séverin Lemaignan committed
66

Séverin Lemaignan's avatar
Séverin Lemaignan committed
67
ament_package()