github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/third_party/google-glog/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(SD src)
    16  set(BSD ${SD}/base)
    17  set(GSD ${SD}/glog)
    18  
    19  set(GLOG_SOURCES
    20      ${SD}/demangle.cc
    21      ${SD}/logging.cc
    22      ${SD}/raw_logging.cc
    23      ${SD}/signalhandler.cc
    24      ${SD}/stacktrace_unittest.cc
    25      ${SD}/symbolize.cc
    26      ${SD}/utilities.cc
    27      ${SD}/vlog_is_on.cc
    28     )
    29  
    30  set(GLOG_HEADERS
    31      ${SD}/config_ia32.h
    32      ${SD}/config_x64.h
    33      ${SD}/config.h
    34      ${SD}/demangle.h
    35      ${SD}/googletest.h
    36      ${SD}/stacktrace_generic-inl.h
    37      ${SD}/stacktrace.h
    38      ${SD}/stacktrace_libunwind-inl.h
    39      ${SD}/stacktrace_powerpc-inl.h
    40      ${SD}/stacktrace_x86_64-inl.h
    41      ${SD}/stacktrace_x86-inl.h
    42      ${SD}/symbolize.h
    43      ${SD}/utilities.h
    44      ${BSD}/commandlineflags.h
    45      ${BSD}/googleinit.h
    46      ${BSD}/mutex.h
    47      ${GSD}/logging.h
    48      ${GSD}/log_severity.h
    49      ${GSD}/raw_logging.h
    50      ${GSD}/stl_logging.h
    51      ${GSD}/vlog_is_on.h
    52     )
    53  
    54  include_directories(${SD})
    55  include_directories(../gflags/src)
    56  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-sign-compare")
    57  add_library(glog STATIC ${GLOG_SOURCES} ${GLOG_HEADERS})
    58  target_link_libraries(glog gflags)
    59  target_link_libraries(glog pthread)