fix ctest
This commit is contained in:
@@ -220,6 +220,9 @@ endforeach(F)
|
|||||||
|
|
||||||
if (TESTS)
|
if (TESTS)
|
||||||
set(PIP_ROOT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
set(PIP_ROOT_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
||||||
|
if (TESTS_RUN)
|
||||||
|
enable_testing()
|
||||||
|
endif()
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,6 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|||||||
set(BUILD_GMOCK OFF CACHE BOOL "Build Google Mock" FORCE)
|
set(BUILD_GMOCK OFF CACHE BOOL "Build Google Mock" FORCE)
|
||||||
FetchContent_MakeAvailable(googletest)
|
FetchContent_MakeAvailable(googletest)
|
||||||
|
|
||||||
enable_testing()
|
|
||||||
|
|
||||||
include(GoogleTest)
|
include(GoogleTest)
|
||||||
|
|
||||||
macro(pip_test NAME)
|
macro(pip_test NAME)
|
||||||
|
|||||||
Reference in New Issue
Block a user