Skip to content

Commit

Permalink
add pthread
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yoshimi committed Oct 29, 2018
1 parent c9fc365 commit fba2536
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/c++/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ function(add_gtest test)
#set(gtest_src "${ARGV1}/gtest_main.cc;${ARGV1}/gtest-all.cc")

add_executable(${test} ${source} ${header_files})
target_link_libraries(${test} GTest::GTest GTest::Main)
target_link_libraries(${test} GTest::GTest GTest::Main pthread)
target_include_directories(${test} PRIVATE ${HDF5_INCLUDE_DIR})
add_test(NAME ${test} COMMAND ${test} ${test_xml_output})
endfunction(add_gtest)

find_package(GTest REQUIRED)
include_directories(BEFORE ${GTEST_INCLUDE_DIRS})
include_directories(../../c++/include)
include_directories(./)

# test for SPM library

Expand Down

0 comments on commit fba2536

Please sign in to comment.