Files
phxrpc/codegen/CMakeLists.txt
tqcq f1ac87c160
All checks were successful
phxrpc / build (Debug, aarch64-linux-gnu) (push) Successful in 3m57s
phxrpc / build (Debug, host.gcc) (push) Successful in 4m0s
phxrpc / build (Debug, mipsel-linux-gnu) (push) Successful in 5m7s
phxrpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 28m44s
phxrpc / build (Release, aarch64-linux-gnu) (push) Successful in 3m59s
phxrpc / build (Release, host.gcc) (push) Successful in 4m46s
phxrpc / build (Release, mipsel-linux-gnu) (push) Successful in 3m26s
phxrpc / build (Release, arm-linux-gnueabihf) (push) Successful in 9m11s
init repo.
2025-08-06 16:06:13 +08:00

24 lines
722 B
CMake

# file(GLOB_RECURSE PHXRPC_SRCS "*.cpp" "*.cc")
add_executable(phxrpc_gen
"client_template.cpp"
"server_template.cpp"
"service_code_render.cpp"
"code_utils.cpp"
"proto_utils.cpp"
"name_render.cpp"
"tool_template.cpp"
"tool_code_render.cpp"
"server_code_render.cpp"
"phxrpc_pb2tool.cpp"
"codegen.cpp"
"client_code_render.cpp"
"phxrpc_pb2client.cpp"
"phxrpc_pb2server.cpp"
"syntax_tree.cpp"
"phxrpc_pb2service.cpp"
)
target_compile_options(phxrpc_gen PRIVATE "-static")
target_include_directories(phxrpc_gen PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(phxrpc_gen PUBLIC libprotoc)
install(TARGETS phxrpc_gen DESTINATION ${CMAKE_INSTALL_BINDIR})