diff --git a/CMakeLists.txt b/CMakeLists.txt index 4db039cb..80650c59 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a2afb0cb..73992efe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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}