github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/apps/CMakeLists.txt (about) 1 # Copyright (c) 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 include_directories(..) 16 include_directories(${CMAKE_BINARY_DIR}) 17 include_directories(../third_party/google-glog/src) 18 include_directories(../third_party/gflags/src) 19 include_directories(/usr/include) 20 21 # for the chromium definitions, we need -DOS_POSIX 22 add_definitions(-DOS_POSIX) 23 include_directories(${CMAKE_SOURCE_DIR}/third_party/chromium/include) 24 25 add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/auth.cc ${CMAKE_BINARY_DIR}/auth.h 26 COMMAND go run ${CMAKE_SOURCE_DIR}/../go/apps/genauth/genauth/genauth.go -ast_file ${CMAKE_SOURCE_DIR}/../go/tao/auth/ast.go -binary_file ${CMAKE_SOURCE_DIR}/../go/tao/auth/binary.go -header_file ${CMAKE_BINARY_DIR}/auth.h -impl_file ${CMAKE_BINARY_DIR}/auth.cc 27 DEPENDS ${CMAKE_SOURCE_DIR}/../go/apps/genauth/genauth/genauth.go ${CMAKE_SOURCE_DIR}/../go/apps/genauth/cppgen.go ${CMAKE_SOURCE_DIR}/../go/apps/genauth/visitors.go) 28 29 add_library(auth ${CMAKE_BINARY_DIR}/auth.cc ${CMAKE_BINARY_DIR}/auth.h) 30 31 add_executable(encode_auth encode_auth.cc) 32 target_link_libraries(encode_auth tao auth) 33 34 add_executable(go_child go_child.cc) 35 target_link_libraries(go_child tao)