mirror of
https://github.com/google/benchmark.git
synced 2024-12-27 13:00:36 +08:00
CMakeLists.txt comments
This commit is contained in:
parent
1c82191d7a
commit
fac16a662e
@ -4,7 +4,7 @@ project (benchmark)
|
||||
# Make sure we can import out CMake functions
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
# We need threads in this project
|
||||
# Resolve dependent packages
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# Import and build Google Test
|
||||
|
@ -1,12 +1,15 @@
|
||||
# Define the source files
|
||||
set(SOURCE_FILES "benchmark.cc" "colorprint.cc" "commandlineflags.cc" "sleep.cc" "sysinfo.cc" "walltime.cc")
|
||||
set(RE_FILES "re.cc")
|
||||
|
||||
# Build a regular expression library
|
||||
add_library(benchmark_re ${RE_FILES})
|
||||
set_target_properties(benchmark_re PROPERTIES
|
||||
VERSION ${GENERIC_LIB_VERSION}
|
||||
SOVERSION ${GENERIC_LIB_SOVERSION}
|
||||
)
|
||||
|
||||
# Build the benchmark library
|
||||
add_library(benchmark ${SOURCE_FILES} ${RE_FILES})
|
||||
set_target_properties(benchmark PROPERTIES
|
||||
VERSION ${GENERIC_LIB_VERSION}
|
||||
|
Loading…
Reference in New Issue
Block a user