File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 99
1010project (${LIB_TARGET} LANGUAGES CXX VERSION 0.0.1)
1111
12+ if (NOT DEFINED LF_REACTOR_CPP_SUFFIX)
13+ find_package (ament_cmake QUIET )
14+ if (ament_cmake_FOUND)
15+ set (REACTOR_CPP_USE_AMENT ON )
16+ endif ()
17+ endif ()
18+
1219# require C++17
1320set (CMAKE_CXX_STANDARD 17)
1421set (CMAKE_CXX_STANDARD_REQUIRED ON )
@@ -71,3 +78,9 @@ if (DEFINED LF_REACTOR_CPP_SUFFIX)
7178else ()
7279 install (DIRECTORY include / DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} " )
7380endif ()
81+
82+ if (REACTOR_CPP_USE_AMENT)
83+ ament_export_targets(${LIB_TARGET} Config HAS_LIBRARY_TARGET)
84+ ament_export_include_directories(include )
85+ ament_package()
86+ endif ()
Original file line number Diff line number Diff line change 66 <description >A C++ reactor runtime</description >
77 <
maintainer email =
" [email protected] " >user</
maintainer >
88 <license >ISC License</license >
9+ <buildtool_depend >ament_cmake</buildtool_depend >
910 <export >
10- <build_type >cmake </build_type >
11+ <build_type >ament_cmake </build_type >
1112 </export >
1213</package >
You can’t perform that action at this time.
0 commit comments