-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
67 changed files
with
49,822 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
project(mbetest) | ||
|
||
add_subdirectory(gtest) | ||
add_subdirectory(gmock) | ||
|
||
FILE(GLOB SRCS *.cpp) | ||
|
||
include_directories( | ||
${PROJECT_SOURCE_DIR}/gtest/include | ||
${PROJECT_SOURCE_DIR}/gmock/include | ||
${mbe_SOURCE_DIR} | ||
) | ||
|
||
add_custom_target(test | ||
DEPENDS mbetest | ||
COMMAND mbetest | ||
) | ||
|
||
ADD_EXECUTABLE(mbetest ${SRCS}) | ||
TARGET_LINK_LIBRARIES(mbetest mbe gmock gtest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
######################################################################## | ||
# CMake build script for Google Mock. | ||
# | ||
# To run the tests for Google Mock itself on Linux, use 'make test' or | ||
# ctest. You can select which tests to run using 'ctest -R regex'. | ||
# For more options, run 'ctest --help'. | ||
|
||
# BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to | ||
# make it prominent in the GUI. | ||
option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF) | ||
|
||
######################################################################## | ||
# | ||
# Project-wide settings | ||
|
||
# Name of the project. | ||
# | ||
# CMake files in this project can refer to the root source directory | ||
# as ${gmock_SOURCE_DIR} and to the root binary directory as | ||
# ${gmock_BINARY_DIR}. | ||
# Language "C" is required for find_package(Threads). | ||
project(gmock CXX C) | ||
cmake_minimum_required(VERSION 2.6.2) | ||
|
||
# Adds Google Mock's and Google Test's header directories to the search path. | ||
include_directories("${gmock_SOURCE_DIR}/include" | ||
"${gmock_SOURCE_DIR}" | ||
"${gtest_SOURCE_DIR}/include") | ||
|
||
######################################################################## | ||
# | ||
# Defines the gmock & gmock_main libraries. User tests should link | ||
# with one of them. | ||
|
||
# Google Mock libraries. We build them using more strict warnings than what | ||
# are used for other targets, to ensure that Google Mock can be compiled by | ||
# a user aggressive about warnings. | ||
cxx_library(gmock | ||
"${cxx_strict}" | ||
src/gmock-all.cc) | ||
|
||
cxx_library(gmock_main | ||
"${cxx_strict}" | ||
src/gmock-all.cc | ||
src/gmock_main.cc) |
Oops, something went wrong.