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
fac16a66
Commit
fac16a66
authored
Jul 31, 2014
by
Matt Clarkson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMakeLists.txt comments
parent
1c82191d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
CMakeLists.txt
src/CMakeLists.txt
+3
-0
No files found.
CMakeLists.txt
View file @
fac16a66
...
@@ -4,7 +4,7 @@ project (benchmark)
...
@@ -4,7 +4,7 @@ project (benchmark)
# Make sure we can import out CMake functions
# Make sure we can import out CMake functions
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake"
)
#
We need threads in this project
#
Resolve dependent packages
find_package
(
Threads REQUIRED
)
find_package
(
Threads REQUIRED
)
# Import and build Google Test
# Import and build Google Test
...
...
src/CMakeLists.txt
View file @
fac16a66
# Define the source files
set
(
SOURCE_FILES
"benchmark.cc"
"colorprint.cc"
"commandlineflags.cc"
"sleep.cc"
"sysinfo.cc"
"walltime.cc"
)
set
(
SOURCE_FILES
"benchmark.cc"
"colorprint.cc"
"commandlineflags.cc"
"sleep.cc"
"sysinfo.cc"
"walltime.cc"
)
set
(
RE_FILES
"re.cc"
)
set
(
RE_FILES
"re.cc"
)
# Build a regular expression library
add_library
(
benchmark_re
${
RE_FILES
}
)
add_library
(
benchmark_re
${
RE_FILES
}
)
set_target_properties
(
benchmark_re PROPERTIES
set_target_properties
(
benchmark_re PROPERTIES
VERSION
${
GENERIC_LIB_VERSION
}
VERSION
${
GENERIC_LIB_VERSION
}
SOVERSION
${
GENERIC_LIB_SOVERSION
}
SOVERSION
${
GENERIC_LIB_SOVERSION
}
)
)
# Build the benchmark library
add_library
(
benchmark
${
SOURCE_FILES
}
${
RE_FILES
}
)
add_library
(
benchmark
${
SOURCE_FILES
}
${
RE_FILES
}
)
set_target_properties
(
benchmark PROPERTIES
set_target_properties
(
benchmark PROPERTIES
VERSION
${
GENERIC_LIB_VERSION
}
VERSION
${
GENERIC_LIB_VERSION
}
...
...
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