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
890908c1
Commit
890908c1
authored
Jul 30, 2014
by
Dominic Hamon
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #39 from mattyclarkson/fixes
Allow shared libraries with BUILD_SHARED_LIBS
parents
20ac20ac
57fdf38f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
4 deletions
+22
-4
.gitignore
.gitignore
+3
-0
AUTHORS
AUTHORS
+2
-1
CMakeLists.txt
CMakeLists.txt
+4
-0
CONTRIBUTORS
CONTRIBUTORS
+2
-1
CMakeLists.txt
src/CMakeLists.txt
+11
-2
No files found.
.gitignore
View file @
890908c1
*.a
*.a
*.so
*.so.?*
*.dylib
*.cmake
*.cmake
*~
*~
/test/benchmark_test
/test/benchmark_test
...
...
AUTHORS
View file @
890908c1
...
@@ -15,8 +15,9 @@ Dominic Hamon <dma@stripysock.com>
...
@@ -15,8 +15,9 @@ Dominic Hamon <dma@stripysock.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Felix Homann <linuxaudio@showlabor.de>
Felix Homann <linuxaudio@showlabor.de>
Google Inc.
Google Inc.
Lei Xu <eddyxu@gmail.com>
Matt Clarkson <mattyclarkson@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Paul Redmond <paul.redmond@gmail.com>
Paul Redmond <paul.redmond@gmail.com>
Shuo Chen <chenshuo@chenshuo.com>
Shuo Chen <chenshuo@chenshuo.com>
Yusuke Suzuki <utatane.tea@gmail.com>
Yusuke Suzuki <utatane.tea@gmail.com>
Lei Xu <eddyxu@gmail.com>
CMakeLists.txt
View file @
890908c1
...
@@ -38,6 +38,10 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86")
...
@@ -38,6 +38,10 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86")
add_definitions
(
-DARCH_X86
)
add_definitions
(
-DARCH_X86
)
endif
()
endif
()
# The version of the libraries
set
(
GENERIC_LIB_VERSION
"0.0.0"
)
set
(
GENERIC_LIB_SOVERSION
"0"
)
# Set up directories
# Set up directories
include_directories
(
${
PROJECT_SOURCE_DIR
}
/include
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/include
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/src
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/src
)
...
...
CONTRIBUTORS
View file @
890908c1
...
@@ -29,10 +29,11 @@ David Coeurjolly <david.coeurjolly@liris.cnrs.fr>
...
@@ -29,10 +29,11 @@ David Coeurjolly <david.coeurjolly@liris.cnrs.fr>
Dominic Hamon <dma@stripysock.com>
Dominic Hamon <dma@stripysock.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Eugene Zhuk <eugene.zhuk@gmail.com>
Felix Homann <linuxaudio@showlabor.de>
Felix Homann <linuxaudio@showlabor.de>
Lei Xu <eddyxu@gmail.com>
Matt Clarkson <mattyclarkson@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Oleksandr Sochka <sasha.sochka@gmail.com>
Pascal Leroy <phl@google.com>
Pascal Leroy <phl@google.com>
Paul Redmond <paul.redmond@gmail.com>
Paul Redmond <paul.redmond@gmail.com>
Pierre Phaneuf <pphaneuf@google.com>
Pierre Phaneuf <pphaneuf@google.com>
Shuo Chen <chenshuo@chenshuo.com>
Shuo Chen <chenshuo@chenshuo.com>
Yusuke Suzuki <utatane.tea@gmail.com>
Yusuke Suzuki <utatane.tea@gmail.com>
Lei Xu <eddyxu@gmail.com>
src/CMakeLists.txt
View file @
890908c1
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"
)
add_library
(
benchmark_re STATIC
${
RE_FILES
}
)
add_library
(
benchmark_re
${
RE_FILES
}
)
add_library
(
benchmark STATIC
${
SOURCE_FILES
}
${
RE_FILES
}
)
set_target_properties
(
benchmark_re PROPERTIES
VERSION
${
GENERIC_LIB_VERSION
}
SOVERSION
${
GENERIC_LIB_SOVERSION
}
)
add_library
(
benchmark
${
SOURCE_FILES
}
${
RE_FILES
}
)
set_target_properties
(
benchmark PROPERTIES
VERSION
${
GENERIC_LIB_VERSION
}
SOVERSION
${
GENERIC_LIB_SOVERSION
}
)
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
install
(
install
(
...
...
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