forked from autowarefoundation/autoware_universe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
53 lines (41 loc) · 1.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.14)
project(map_tf_generator)
find_package(autoware_cmake REQUIRED)
autoware_package()
find_package(PCL REQUIRED)
include_directories(
include
SYSTEM
${PCL_INCLUDE_DIRS}
)
ament_auto_add_library(pcd_map_tf_generator_node SHARED
src/pcd_map_tf_generator_node.cpp
)
target_link_libraries(pcd_map_tf_generator_node ${PCL_LIBRARIES})
rclcpp_components_register_node(pcd_map_tf_generator_node
PLUGIN "PcdMapTFGeneratorNode"
EXECUTABLE pcd_map_tf_generator
)
ament_auto_add_library(vector_map_tf_generator_node SHARED
src/vector_map_tf_generator_node.cpp
)
rclcpp_components_register_node(vector_map_tf_generator_node
PLUGIN "VectorMapTFGeneratorNode"
EXECUTABLE vector_map_tf_generator
)
if(BUILD_TESTING)
function(add_testcase filepath)
get_filename_component(filename ${filepath} NAME)
string(REGEX REPLACE ".cpp" "" test_name ${filename})
ament_add_gmock(${test_name} ${filepath})
target_include_directories(${test_name} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
ament_target_dependencies(${test_name} ${${PROJECT_NAME}_FOUND_BUILD_DEPENDS})
endfunction()
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
add_testcase(test/test_uniform_random.cpp)
endif()
ament_auto_package(INSTALL_TO_SHARE
config
launch
)