mirror of
https://github.com/google/benchmark.git
synced 2025-03-21 06:30:07 +08:00
15 lines
464 B
CMake
15 lines
464 B
CMake
set(SOURCE_FILES "benchmark.cc" "colorprint.cc" "commandlineflags.cc" "sleep.cc" "sysinfo.cc" "walltime.cc")
|
|
|
|
add_library(benchmark STATIC ${SOURCE_FILES})
|
|
|
|
# Install target (will install the library to specified CMAKE_INSTALL_PREFIX variable)
|
|
install(
|
|
TARGETS benchmark
|
|
ARCHIVE DESTINATION lib
|
|
LIBRARY DESTINATION lib
|
|
COMPONENT library)
|
|
install(
|
|
DIRECTORY "${PROJECT_SOURCE_DIR}/include/benchmark"
|
|
DESTINATION include
|
|
FILES_MATCHING PATTERN "*.*h")
|