Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
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
googletest
Commits
7dfbea49
Commit
7dfbea49
authored
Oct 05, 2010
by
zhanyong.wan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes an include order problem in CMakeLists.txt; pulls in gtest r489.
parent
d8e15d9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
CMakeLists.txt
CMakeLists.txt
+10
-14
No files found.
CMakeLists.txt
View file @
7dfbea49
########################################################################
########################################################################
# Experimental CMake build script for Google Mock.
# CMake build script for Google Mock.
#
# Consider this a prototype. It will change drastically. For now,
# this is only for people on the cutting edge.
#
#
# To run the tests for Google Mock itself on Linux, use 'make test' or
# 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'.
# ctest. You can select which tests to run using 'ctest -R regex'.
...
@@ -12,7 +9,7 @@
...
@@ -12,7 +9,7 @@
# make it prominent in the GUI.
# make it prominent in the GUI.
option
(
BUILD_SHARED_LIBS
"Build shared libraries (DLLs)."
OFF
)
option
(
BUILD_SHARED_LIBS
"Build shared libraries (DLLs)."
OFF
)
# For
s
es BUILD_SHARED_LIBS to OFF as Google Mock currently does not support
# For
c
es BUILD_SHARED_LIBS to OFF as Google Mock currently does not support
# working in a DLL.
# working in a DLL.
# TODO(vladl@google.com): Implement building gMock as a DLL.
# TODO(vladl@google.com): Implement building gMock as a DLL.
set
(
BUILD_SHARED_LIBS OFF
)
set
(
BUILD_SHARED_LIBS OFF
)
...
@@ -26,6 +23,7 @@ else()
...
@@ -26,6 +23,7 @@ else()
set
(
gtest_dir ../gtest
)
set
(
gtest_dir ../gtest
)
endif
()
endif
()
# Defines pre_project_set_up_hermetic_build() and set_up_hermetic_build().
include
(
"
${
gtest_dir
}
/cmake/hermetic_build.cmake"
OPTIONAL
)
include
(
"
${
gtest_dir
}
/cmake/hermetic_build.cmake"
OPTIONAL
)
if
(
COMMAND pre_project_set_up_hermetic_build
)
if
(
COMMAND pre_project_set_up_hermetic_build
)
...
@@ -51,19 +49,17 @@ if (COMMAND set_up_hermetic_build)
...
@@ -51,19 +49,17 @@ if (COMMAND set_up_hermetic_build)
set_up_hermetic_build
()
set_up_hermetic_build
()
endif
()
endif
()
# Defines functions and variables used by Google Mock.
include
(
"
${
gtest_dir
}
/cmake/internal_utils.cmake"
)
# Google Test also calls this function from add_subdirectory,
# although its changes will not affect things at the current scope.
fix_default_settings
()
# Defined in internal_utils.cmake.
# Instructs CMake to process Google Test's CMakeLists.txt and add its
# Instructs CMake to process Google Test's CMakeLists.txt and add its
# targets to the current scope. We are placing Google Test's binary
# targets to the current scope. We are placing Google Test's binary
# directory in a subdirectory of our own as VC compilation may break
if they
# directory in a subdirectory of our own as VC compilation may break
# are the same (the default).
#
if they
are the same (the default).
add_subdirectory
(
"
${
gtest_dir
}
"
"
${
gmock_BINARY_DIR
}
/gtest"
)
add_subdirectory
(
"
${
gtest_dir
}
"
"
${
gmock_BINARY_DIR
}
/gtest"
)
# Although Google Test's CMakeLists.txt calls this function, the
# changes there don't affect the current scope. Therefore we have to
# call it again here.
config_compiler_and_linker
()
# from ${gtest_dir}/cmake/internal_utils.cmake
# Adds Google Mock's and Google Test's header directories to the search path.
# Adds Google Mock's and Google Test's header directories to the search path.
include_directories
(
"
${
gmock_SOURCE_DIR
}
/include"
include_directories
(
"
${
gmock_SOURCE_DIR
}
/include"
"
${
gmock_SOURCE_DIR
}
"
"
${
gmock_SOURCE_DIR
}
"
...
...
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