diff --git a/cmake/Findzeromq3.cmake b/cmake/Findzeromq3.cmake new file mode 100644 index 0000000000000000000000000000000000000000..f8dfa56d136f3b8894cc347b39998a65c161a5d6 --- /dev/null +++ b/cmake/Findzeromq3.cmake @@ -0,0 +1,28 @@ +# The CERN Tape Archive(CTA) project +# Copyright(C) 2015 CERN +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# This module will set the following variables: +# ZEROMQ3_FOUND +# ZEROMQ3_INCLUDE_DIRS + +find_path (ZEROMQ3_INCLUDE_DIRS + zmq.h + PATHS /usr/include + NO_DEFAULT_PATH) + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(zeromq3 DEFAULT_MSG + ZEROMQ3_INCLUDE_DIRS) diff --git a/tapeserver/castor/messages/CMakeLists.txt b/tapeserver/castor/messages/CMakeLists.txt index e907f3150e113b1ef302a781649ca81ae90e6e7b..64b91feb94beef38359b6d32a049a0d6d8c85862 100644 --- a/tapeserver/castor/messages/CMakeLists.txt +++ b/tapeserver/castor/messages/CMakeLists.txt @@ -24,6 +24,7 @@ include_directories(${PROJECT_SOURCE_DIR}/tapeserver) include_directories(${PROJECT_BINARY_DIR}/tapeserver) find_package(Protobuf REQUIRED) +find_package(zeromq3 REQUIRED) file(GLOB ProtoFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.proto") PROTOBUF_GENERATE_CPP(ProtoSources ProtoHeaders ${ProtoFiles})