Skip to content

Commit

Permalink
fix: build error
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Nov 15, 2023
1 parent 0090f11 commit 9c5f206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions source/MaaRpc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ add_library(MaaRpc SHARED ${maa_rpc_src} ${maa_rpc_header})
target_compile_definitions(MaaRpc PRIVATE MAA_RPC_EXPORTS)
target_include_directories(
MaaRpc
INTERFACE ../../include
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../include> $<INSTALL_INTERFACE:include>
PRIVATE . ../include ../../include
${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(MaaRpc PUBLIC RpcProto MaaUtils MaaToolKit protobuf::libprotobuf gRPC::grpc++)
target_link_libraries(MaaRpc PUBLIC MaaToolKit PRIVATE RpcProto MaaUtils HeaderOnlyLibraries protobuf::libprotobuf gRPC::grpc++)

install(
TARGETS MaaRpc
EXPORT MaaFrameworkTargets
RUNTIME DESTINATION bin
LIBRARY DESTINATION bin
ARCHIVE DESTINATION lib)
Expand Down
2 changes: 1 addition & 1 deletion test/pipeline/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ file(

add_executable(PipelineTesting ${pipeline_testing_src})

target_link_libraries(PipelineTesting MaaFramework)
target_link_libraries(PipelineTesting MaaFramework HeaderOnlyLibraries)

add_dependencies(PipelineTesting MaaFramework PipelineSmokingResource)
set_target_properties(PipelineTesting PROPERTIES FOLDER Testing)
Expand Down

0 comments on commit 9c5f206

Please sign in to comment.