ctest add
This commit is contained in:
parent
ac0d12b90a
commit
4e0efc7005
@ -1,4 +1,7 @@
|
|||||||
|
enable_testing()
|
||||||
|
|
||||||
find_package(GTest REQUIRED)
|
find_package(GTest REQUIRED)
|
||||||
|
include(GoogleTest)
|
||||||
|
|
||||||
find_package(Boost REQUIRED COMPONENTS thread)
|
find_package(Boost REQUIRED COMPONENTS thread)
|
||||||
|
|
||||||
@ -11,6 +14,6 @@ target_link_libraries(${NAME} PRIVATE
|
|||||||
Boost::thread
|
Boost::thread
|
||||||
${PROJECT_NAME}
|
${PROJECT_NAME}
|
||||||
)
|
)
|
||||||
|
gtest_discover_tests(${NAME})
|
||||||
# target_compile_options(${NAME} PRIVATE -fsanitize=thread)
|
# target_compile_options(${NAME} PRIVATE -fsanitize=thread)
|
||||||
# target_link_options(${NAME} PRIVATE -fsanitize=thread)
|
# target_link_options(${NAME} PRIVATE -fsanitize=thread)
|
||||||
Loading…
x
Reference in New Issue
Block a user