enable_testing() find_package(GTest REQUIRED) find_package(Threads REQUIRED) include_directories( ${CMAKE_CURRENT_LIST_DIR}/../src ) # include(GoogleTest) add_executable(vbt_test vbt_test.cpp) target_link_libraries( vbt_test gtest gtest_main pthread ) add_test(NAME vbt_test COMMAND vbt_test)