github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/tao/CMakeLists.txt (about) 1 # Copyright 2014 Google Inc. All rights reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 set(TAO_PROTO 16 tao_rpc.proto 17 ) 18 19 PROTOBUF_GENERATE_CPP(PROTO_SRCS PROTO_HDRS ${TAO_PROTO}) 20 21 set(TAO_SOURCES 22 fd_message_channel.cc 23 message_channel.cc 24 tao_rpc.cc 25 util.cc 26 ) 27 28 set(TAO_HEADERS 29 fd_message_channel.h 30 message_channel.h 31 tao.h 32 tao_rpc.h 33 util.h 34 ) 35 36 # This is added to get the right path for the protobuf generated header files. 37 include_directories(${CMAKE_BINARY_DIR}) 38 include_directories(${CMAKE_SOURCE_DIR}) 39 include_directories(${CMAKE_SOURCE_DIR}/third_party/google-glog/src) 40 include_directories(${CMAKE_SOURCE_DIR}/third_party/gflags/src) 41 42 # for the chromium definitions, we need -DOS_POSIX 43 add_definitions(-DOS_POSIX) 44 include_directories(${CMAKE_SOURCE_DIR}/third_party/chromium/include) 45 46 include_directories(${CMAKE_SOURCE_DIR}/third_party/modp/include) 47 add_library(tao STATIC 48 ${PROTO_SRCS} 49 ${PROTO_HDRS} 50 ${TAO_SOURCES} 51 ${TAO_HEADERS} 52 ) 53 54 # TODO(tmroeder): add checks for OpenSSL, libvirt, and libtspi. 55 target_link_libraries(tao 56 chromium 57 gflags 58 glog 59 modp 60 protobuf 61 crypto 62 ssl 63 virt 64 tspi 65 )