19 lines
423 B
CMake
19 lines
423 B
CMake
enable_testing()
|
|
|
|
find_package(GTest REQUIRED)
|
|
include(GoogleTest)
|
|
|
|
find_package(Boost REQUIRED COMPONENTS thread)
|
|
|
|
set(NAME ${PROJECT_NAME}_tests)
|
|
|
|
add_executable(${NAME} main.cc)
|
|
|
|
target_link_libraries(${NAME} PRIVATE
|
|
GTest::gtest
|
|
Boost::thread
|
|
${PROJECT_NAME}
|
|
)
|
|
gtest_discover_tests(${NAME})
|
|
# target_compile_options(${NAME} PRIVATE -fsanitize=thread)
|
|
# target_link_options(${NAME} PRIVATE -fsanitize=thread) |