Fix install for btservice_proto (#19)

This commit is contained in:
Zero 2020-12-22 04:51:32 +10:30 committed by GitHub
parent 3d96b6e6e3
commit 5554052d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,6 @@ add_library(btservice_proto SHARED ${proto_headers} ${proto_sources})
target_link_libraries(btservice_proto ${PROTOBUF_LIBRARIES})
install(TARGETS btservice_proto DESTINATION lib)
install(DIRECTORY . DESTINATION include/btservice_proto
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DESTINATION include
FILES_MATCHING PATTERN *.h
PATTERN CMakeFiles EXCLUDE)