-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
47 lines (39 loc) · 1.06 KB
/
CMakeLists.txt
File metadata and controls
47 lines (39 loc) · 1.06 KB
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
cmake_minimum_required(VERSION 3.20)
project(zenoh_security_tools)
# Default to C++17
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
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(nlohmann_json REQUIRED)
find_package(rcpputils REQUIRED)
find_package(rcutils REQUIRED)
find_package(rmw_security_common REQUIRED)
find_package(TinyXML2 REQUIRED)
find_package(zenoh_cpp_vendor REQUIRED)
add_executable(generate_configs
src/main.cpp
src/config_generator.cpp
)
target_link_libraries(generate_configs PRIVATE
nlohmann_json::nlohmann_json
rcpputils::rcpputils
rcutils::rcutils
rmw_security_common::rmw_security_common_library
tinyxml2::tinyxml2
zenohcxx::zenohc
)
if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
endif()
install(
TARGETS generate_configs
DESTINATION lib/${PROJECT_NAME}
)
ament_package()