This is an automated email from the ASF dual-hosted git repository. cmcfarlen pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new e678432baa add traffic_ctl to cmake (#9628) e678432baa is described below commit e678432baa612948faba2c63f82f13eff90331b3 Author: Chris McFarlen <ch...@mcfarlen.us> AuthorDate: Mon Apr 24 11:29:56 2023 -0500 add traffic_ctl to cmake (#9628) Co-authored-by: Chris McFarlen <cmcfar...@apple.com> --- CMakeLists.txt | 1 + src/traffic_ctl/CMakeLists.txt | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index daefcf79fd..dd4bf2a7bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -190,6 +190,7 @@ add_subdirectory(mgmt/utils) add_subdirectory(mgmt/config) add_subdirectory(mgmt/rpc) add_subdirectory(src/traffic_server) +add_subdirectory(src/traffic_ctl) add_subdirectory(src/tests) add_subdirectory(plugins) add_subdirectory(configs) diff --git a/src/traffic_ctl/CMakeLists.txt b/src/traffic_ctl/CMakeLists.txt new file mode 100644 index 0000000000..8ab0222cea --- /dev/null +++ b/src/traffic_ctl/CMakeLists.txt @@ -0,0 +1,38 @@ +####################### +# +# Licensed to the Apache Software Foundation (ASF) under one or more contributor license +# agreements. See the NOTICE file distributed with this work for additional information regarding +# copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License +# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express +# or implied. See the License for the specific language governing permissions and limitations under +# the License. +# +####################### + +add_executable(traffic_ctl + traffic_ctl.cc + CtrlCommands.cc + CtrlPrinters.cc + FileConfigCommand.cc + ${CMAKE_SOURCE_DIR}/src/shared/rpc/IPCSocketClient.cc +) + +target_include_directories(traffic_ctl PRIVATE + ${IOCORE_INCLUDE_DIRS} + ${PROXY_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/mgmt + ${CMAKE_SOURCE_DIR}/mgmt/utils + ) +target_link_libraries(traffic_ctl + tscore + yaml-cpp + libswoc + ) + +install(TARGETS traffic_server)