Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
6087edda
Commit
6087edda
authored
Apr 23, 2014
by
Chris Kennelly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ExternalProject reference to Google Test 1.7.0.
parent
e38fde64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
CMakeLists.txt
CMakeLists.txt
+14
-0
.gitignore
third_party/.gitignore
+3
-0
No files found.
CMakeLists.txt
View file @
6087edda
...
@@ -3,6 +3,20 @@ project (benchmark)
...
@@ -3,6 +3,20 @@ project (benchmark)
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
# Import and build Google Test
include
(
ExternalProject
)
set_directory_properties
(
properties EP_PREFIX
"
${
CMAKE_BINARY_DIR
}
/third_party"
)
ExternalProject_Add
(
googletest
URL
"https://googletest.googlecode.com/files/gtest-1.7.0.zip"
URL_HASH SHA1=f85f6d2481e2c6c4a18539e391aa4ea8ab0394af
TLS_VERIFY on
SOURCE_DIR
"
${
CMAKE_BINARY_DIR
}
/third_party/gtest"
INSTALL_COMMAND
""
)
ExternalProject_Get_Property
(
googletest source_dir
)
include_directories
(
${
source_dir
}
/include
)
ExternalProject_Get_Property
(
googletest binary_dir
)
link_directories
(
${
binary_dir
}
)
set
(
CMAKE_CXX_FLAGS
"-Wall -Werror -pedantic-errors --std=c++0x"
)
set
(
CMAKE_CXX_FLAGS
"-Wall -Werror -pedantic-errors --std=c++0x"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g -O0 -DDEBUG"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g -O0 -DDEBUG"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-fno-strict-aliasing -O3 -DNDEBUG"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-fno-strict-aliasing -O3 -DNDEBUG"
)
...
...
third_party/.gitignore
0 → 100644
View file @
6087edda
gtest
src
tmp
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment