Skip to content

Commit

Permalink
add protobuf devel to windows pack
Browse files Browse the repository at this point in the history
  • Loading branch information
rigazilla committed Mar 17, 2023
1 parent 8d4b6fd commit 9cfe5a7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,17 @@ if(NOT DEFINED HOTROD_PREBUILT_LIB_DIR)
install(FILES ${PROTO_HDRS} DESTINATION include/infinispan/hotrod)
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/License.txt" "${CMAKE_CURRENT_SOURCE_DIR}/dist/README.md" DESTINATION ${DOCDIR})

# Include protobuf library in the distribution
if(WIN32)
install(DIRECTORY ${PROTOBUF_INCLUDE_DIRS}/google/protobuf DESTINATION include/google)
get_filename_component(real_protobuf_library "${PROTOBUF_LIBRARY}" REALPATH)
get_filename_component(real_protoc_library "${PROTOBUF_PROTOC_LIBRARY}" REALPATH)
install(FILES ${real_protobuf_library} ${real_protoc_library} ${PROTOBUF_LIBRARY} ${PROTOBUF_PROTOC_LIBRARY} DESTINATION lib${LIB_SUFFIX})
install(FILES ${PROTOBUF_PROTOC_EXECUTABLE}
DESTINATION bin
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ WORLD_READ)
endif(WIN32)

if(NOT DEFINED HOTROD_PREBUILT_LIB_DIR)
set_property(TARGET hotrod PROPERTY CXX_STANDARD 11)
set_property(TARGET hotrod PROPERTY CXX_STANDARD_REQUIRED ON)
Expand Down

0 comments on commit 9cfe5a7

Please sign in to comment.