File tree 6 files changed +23
-1
lines changed
6 files changed +23
-1
lines changed Original file line number Diff line number Diff line change 3
3
url = https://github.com/pybind/pybind11
4
4
branch = smart_holder
5
5
shallow = true
6
+ [submodule "scope_guard "]
7
+ path = core/scope_guard/scope_guard
8
+ url = https://github.com/ricab/scope_guard
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ add_compile_options(-fvisibility-inlines-hidden)
42
42
43
43
set (PROJECT_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR} /include /moveit/task_constructor)
44
44
45
+ add_subdirectory (scope_guard)
45
46
add_subdirectory (src)
46
47
add_subdirectory (python)
47
48
add_subdirectory (test )
Original file line number Diff line number Diff line change
1
+ cmake_minimum_required (VERSION 3.11) # for FetchContent
2
+ project (scope_guard)
3
+
4
+ # handle inclusions and dependencies
5
+ include (CheckCXXSymbolExists)
6
+ include (CheckCXXCompilerFlag)
7
+ include (GNUInstallDirs)
8
+
9
+
10
+ add_library (scope_guard INTERFACE )
11
+ add_library (scope_guard::scope_guard ALIAS scope_guard) # for consumption via add_subdirectory()
12
+
13
+ target_include_directories (scope_guard
14
+ INTERFACE
15
+ include # assuming we move the header file to an `include` directory
16
+ )
Original file line number Diff line number Diff line change
1
+ ../../scope_guard/scope_guard.hpp
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ add_library(${PROJECT_NAME}
37
37
solvers/pipeline_planner.cpp
38
38
solvers/multi_planner.cpp
39
39
)
40
- target_link_libraries (${PROJECT_NAME} ${catkin_LIBRARIES} fmt::fmt)
40
+ target_link_libraries (${PROJECT_NAME} ${catkin_LIBRARIES} fmt::fmt scope_guard::scope_guard )
41
41
target_include_directories (${PROJECT_NAME}
42
42
PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR} /include >
43
43
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} >
You can’t perform that action at this time.
0 commit comments