proxygen
proxygen/lib/test/googletest-release-1.8.0/googletest/CMakeLists.txt File Reference

Functions

 option (BUILD_SHARED_LIBS"Build shared libraries (DLLs)."OFF) option(gtest_force_shared_crt"Use shared (DLL) run-time lib even when Google Test is built as static lib."OFF) option(gtest_build_tests"Build all of gtest's own tests."OFF) option(gtest_build_samples"Build gtest's sample programs."OFF) option(gtest_disable_pthreads"Disable uses of pthreads in gtest."OFF) option(gtest_hide_internal_symbols"Build gtest with internal symbols hidden in shared libraries."OFF) include(cmake/hermetic_build.cmake OPTIONAL) if(COMMAND pre_project_set_up_hermetic_build) pre_project_set_up_hermetic_build() endif() project(gtest CXX C) cmake_minimum_required(VERSION 2.6.2) if(COMMAND set_up_hermetic_build) set_up_hermetic_build() endif() if(gtest_hide_internal_symbols) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) endif() include(cmake/internal_utils.cmake) config_compiler_and_linker() include_directories($
 

Function Documentation

option ( BUILD_SHARED_LIBS"Build shared libraries (DLLs)."  OFF)

Definition at line 10 of file CMakeLists.txt.

References folly::gen::all(), D, flag, fuse_gmock_files::gtest, if(), lib, folly::pushmi::operators::on, option(), s, folly::to(), and folly::when().

44  {gtest_SOURCE_DIR} and to the root binary directory as
45 # ${gtest_BINARY_DIR}.
46 # Language "C" is required for find_package(Threads).
47 project(gtest CXX C)
49 
50 if (COMMAND set_up_hermetic_build)
51  set_up_hermetic_build()
52 endif()
53 
54 if (gtest_hide_internal_symbols)
55  set(CMAKE_CXX_VISIBILITY_PRESET hidden)
56  set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
57 endif()
58 
59 # Define helper functions and macros used by Google Test.
60 include(cmake/internal_utils.cmake)
61 
62 config_compiler_and_linker() # Defined in internal_utils.cmake.
63 
64 # Where Google Test's .h files can be found.
65 include_directories(
66  ${gtest_SOURCE_DIR}/include
cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) if(POLICY CMP0054) cmake_policy(SET CMP0054 NEW) endif() if(POLICY CMP0057) cmake_policy(SET CMP0057 NEW) endif() set(CMAKE_MODULE_PATH"$
Definition: CMakeLists.txt:1
#define VERSION
Definition: config.h:219
std::enable_if< detail::is_chrono_conversion< Tgt, Src >::value, Tgt >::type to(const Src &value)
Definition: Conv.h:677
#define C(name, bit)
Definition: CpuId.h:204
if(FOLLY_USE_SYMBOLIZER) add_library(folly_exception_tracer_base ExceptionTracer.cpp StackTrace.cpp) apply_folly_compile_options_to_target(folly_exception_tracer_base) target_link_libraries(folly_exception_tracer_base PUBLIC folly) add_library(folly_exception_tracer ExceptionStackTraceLib.cpp ExceptionTracerLib.cpp) apply_folly_compile_options_to_target(folly_exception_tracer) target_link_libraries(folly_exception_tracer PUBLIC folly_exception_tracer_base) add_library(folly_exception_counter ExceptionCounterLib.cpp) apply_folly_compile_options_to_target(folly_exception_counter) target_link_libraries(folly_exception_counter PUBLIC folly_exception_tracer) install(FILES ExceptionAbi.h ExceptionCounterLib.h ExceptionTracer.h ExceptionTracerLib.h StackTrace.h DESTINATION $
Definition: CMakeLists.txt:1
Collect as()
Definition: Base.h:811
Definition: Traits.h:592