File tree 4 files changed +16
-2
lines changed
4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,11 @@ if (NOT "${LIB_PROTO_MUTATOR_FUZZER_LIBRARIES}" STREQUAL "" OR
150
150
add_subdirectory (examples EXCLUDE_FROM_ALL )
151
151
endif ()
152
152
153
+ install (EXPORT libprotobuf-mutatorTargets FILE libprotobuf-mutatorTargets.cmake
154
+ NAMESPACE libprotobuf-mutator:: DESTINATION lib/cmake/libprotobuf-mutator)
155
+ configure_file (libprotobuf-mutatorConfig.cmake.in libprotobuf-mutatorConfig.cmake @ONLY)
156
+ install (FILES "${CMAKE_CURRENT_BINARY_DIR} /libprotobuf-mutatorConfig.cmake"
157
+ DESTINATION lib/cmake/libprotobuf-mutator)
153
158
configure_file ("libprotobuf-mutator.pc.in" "libprotobuf-mutator.pc" @ONLY)
154
159
install (FILES "${CMAKE_BINARY_DIR} /libprotobuf-mutator.pc"
155
160
DESTINATION ${PKG_CONFIG_PATH} )
Original file line number Diff line number Diff line change
1
+ include (CMakeFindDependencyMacro)
2
+
3
+ find_dependency(Protobuf REQUIRED)
4
+
5
+ include ("${CMAKE_CURRENT_LIST_DIR} /libprotobuf-mutatorTargets.cmake" )
Original file line number Diff line number Diff line change @@ -60,5 +60,7 @@ if (LIB_PROTO_MUTATOR_TESTING)
60
60
endif ()
61
61
62
62
install (TARGETS protobuf-mutator
63
+ EXPORT libprotobuf-mutatorTargets
63
64
ARCHIVE DESTINATION ${LIB_DIR}
64
- LIBRARY DESTINATION ${LIB_DIR} )
65
+ LIBRARY DESTINATION ${LIB_DIR}
66
+ INCLUDES DESTINATION include /libprotobuf-mutator include /libprotobuf-mutator/src)
Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ set_target_properties(protobuf-mutator-libfuzzer PROPERTIES
23
23
SOVERSION 0)
24
24
25
25
install (TARGETS protobuf-mutator-libfuzzer
26
+ EXPORT libprotobuf-mutatorTargets
26
27
ARCHIVE DESTINATION ${LIB_DIR}
27
- LIBRARY DESTINATION ${LIB_DIR} )
28
+ LIBRARY DESTINATION ${LIB_DIR}
29
+ INCLUDES DESTINATION include /libprotobuf-mutator include /libprotobuf-mutator/src)
28
30
29
31
if (LIB_PROTO_MUTATOR_TESTING)
30
32
add_executable (libfuzzer_test
You can’t perform that action at this time.
0 commit comments