Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
5e3e7fe7
Commit
5e3e7fe7
authored
Apr 17, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a fused version of gtest.
parent
31f7a747
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28676 additions
and
23 deletions
+28676
-23
CMakeLists.txt
CMakeLists.txt
+21
-23
gtest/gtest-all.cc
gtest/gtest-all.cc
+9118
-0
gtest/gtest.h
gtest/gtest.h
+19537
-0
No files found.
CMakeLists.txt
View file @
5e3e7fe7
...
...
@@ -39,29 +39,27 @@ add_test(compile-test ${CMAKE_CTEST_COMMAND}
# See the Google Test FAQ "Why is it not recommended to install a
# pre-compiled copy of Google Test (for example, into /usr/local)?"
# at http://code.google.com/p/googletest/wiki/FAQ for more details.
if
(
EXISTS
${
CMAKE_CURRENT_SOURCE_DIR
}
/gtest/CMakeLists.txt
)
option
(
gtest_force_shared_crt
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
ON
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
add_definitions
(
-DGTEST_USE_OWN_TR1_TUPLE=1
)
endif
()
add_subdirectory
(
gtest
)
include_directories
(
gtest/include
)
link_directories
(
${
CMAKE_CURRENT_BINARY_DIR
}
/gtest
)
add_executable
(
format-test format-test.cc
)
target_link_libraries
(
format-test format gtest
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set_target_properties
(
format-test PROPERTIES COMPILE_FLAGS
"-Wall -Wextra -pedantic -Wno-long-long -Wno-variadic-macros"
)
endif
()
add_test
(
format-test format-test
)
if
(
HAVE_STD_CPP11_FLAG
)
set_target_properties
(
format-test PROPERTIES COMPILE_FLAGS
"-std=c++11"
)
endif
()
include_directories
(
.
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
add_definitions
(
-DGTEST_USE_OWN_TR1_TUPLE=1
)
endif
()
add_library
(
gtest gtest/gtest-all.cc
)
find_package
(
Threads
)
target_link_libraries
(
gtest
${
CMAKE_THREAD_LIBS_INIT
}
)
add_executable
(
format-test format-test.cc
)
target_link_libraries
(
format-test format gtest
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set_target_properties
(
format-test PROPERTIES COMPILE_FLAGS
"-Wall -Wextra -pedantic -Wno-long-long -Wno-variadic-macros"
)
endif
()
add_test
(
format-test format-test
)
if
(
HAVE_STD_CPP11_FLAG
)
set_target_properties
(
format-test PROPERTIES COMPILE_FLAGS
"-std=c++11"
)
endif
()
find_library
(
PROFILER_LIB profiler
)
...
...
gtest/gtest-all.cc
0 → 100644
View file @
5e3e7fe7
This diff is collapsed.
Click to expand it.
gtest/gtest.h
0 → 100644
View file @
5e3e7fe7
This diff is collapsed.
Click to expand it.
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