File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ option(LSAN "Enable leak sanitizer" OFF)
40
40
option (MSAN "Enable memory sanitizer" OFF )
41
41
option (TSAN "Enable thread sanitizer" OFF )
42
42
option (UBSAN "Enable UB sanitizer" OFF )
43
+ option (EXPOSE_MOCKS "Make mocks header files visible for child projects" OFF )
43
44
44
45
45
46
## setup compilation flags
Original file line number Diff line number Diff line change 1
1
include (GNUInstallDirs )
2
2
3
- function (libp2p_install targets )
3
+ function (libp2p_install targets )
4
4
install (TARGETS ${targets} EXPORT libp2pConfig
5
5
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
6
6
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
@@ -20,3 +20,9 @@ install(
20
20
DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/libp2p
21
21
NAMESPACE p2p::
22
22
)
23
+ if (EXPOSE_MOCKS )
24
+ install (
25
+ DIRECTORY ${CMAKE_SOURCE_DIR} /test/mock/libp2p
26
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /mock
27
+ )
28
+ endif ()
You can’t perform that action at this time.
0 commit comments