Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix merge conflict in tests/CMakeLists.txt
- Loading branch information
Showing
19 changed files
with
664 additions
and
231 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
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,24 @@ | ||
cmake_minimum_required(VERSION 2.8.0) | ||
project(gmock_builder C CXX) | ||
include(ExternalProject) | ||
|
||
ExternalProject_Add(googlemock | ||
SVN_REPOSITORY http://googlemock.googlecode.com/svn/tags/release-1.7.0/ | ||
CMAKE_ARGS | ||
PREFIX "${CMAKE_CURRENT_BINARY_DIR}" | ||
# Disable install step | ||
INSTALL_COMMAND "" | ||
# Avoid svn update each time on make | ||
UPDATE_COMMAND "" | ||
) | ||
|
||
# Specify include dir | ||
ExternalProject_Get_Property(googlemock source_dir) | ||
set(GMOCK_INCLUDE_DIRS ${source_dir}/include PARENT_SCOPE) | ||
set(GTEST_INCLUDE_DIRS ${source_dir}/gtest/include PARENT_SCOPE) | ||
|
||
# Specify MainTest's link libraries | ||
ExternalProject_Get_Property(googlemock binary_dir) | ||
set(GTEST_LIBS_DIR ${binary_dir}/gtest PARENT_SCOPE) | ||
set(GMOCK_LIBS_DIR ${binary_dir} PARENT_SCOPE) | ||
|
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
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,12 @@ | ||
/* | ||
solution for git sha based on | ||
http://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake | ||
*/ | ||
|
||
#ifndef __git_sha1_h_ | ||
#define __git_sha1_h_ | ||
extern const char g_GIT_SHA1[]; | ||
extern const char g_GIT_SHALONG[]; | ||
|
||
#endif | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.