separate cmake opts for tests
This commit is contained in:
@@ -24,8 +24,10 @@ macro(pip_test NAME)
|
||||
file(GLOB _HDRS "${NAME}/*.h")
|
||||
set(_target pip_${NAME}_test)
|
||||
add_executable(${_target} ${_CPPS} ${_HDRS})
|
||||
target_link_libraries(${_target} pip ${ARGN} gtest_main)
|
||||
gtest_discover_tests(${_target})
|
||||
target_link_libraries(${_target} pip ${ARGN} gtest_main)
|
||||
if (TESTS_RUN)
|
||||
gtest_discover_tests(${_target})
|
||||
endif()
|
||||
list(APPEND PIP_TESTS_LIST "${NAME}")
|
||||
set(PIP_TESTS_LIST ${PIP_TESTS_LIST} PARENT_SCOPE)
|
||||
endmacro()
|
||||
|
||||
Reference in New Issue
Block a user