Move pthread dependency to test CMakeLists.txt

This commit is contained in:
Dominic Hamon 2014-10-11 14:57:45 -07:00
parent cfb34b5957
commit a13627bc3a
2 changed files with 2 additions and 3 deletions

View File

@ -4,9 +4,6 @@ project (benchmark)
# Make sure we can import out CMake functions
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
# Resolve dependent packages
find_package(Threads REQUIRED)
# Import and build Google Test
include(ExternalProject)
set_directory_properties(properties EP_PREFIX "${CMAKE_BINARY_DIR}/third_party")

View File

@ -1,3 +1,5 @@
find_package(Threads REQUIRED)
# Demonstration executable
add_executable(benchmark_test benchmark_test.cc)
target_link_libraries(benchmark_test benchmark ${CMAKE_THREAD_LIBS_INIT})