mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-01 07:52:37 +00:00
Unittests: Always use GTest from Externals (recommended way from GTest FAQ).
This commit is contained in:
parent
2d6810be9f
commit
9ea845310d
38 changed files with 31418 additions and 22 deletions
|
@ -47,15 +47,10 @@ macro(add_dolphin_library lib srcs libs)
|
|||
endmacro(add_dolphin_library)
|
||||
|
||||
add_subdirectory(Core)
|
||||
add_subdirectory(UnitTests)
|
||||
|
||||
if (DSPTOOL)
|
||||
add_subdirectory(DSPTool)
|
||||
endif()
|
||||
|
||||
if (GTEST_FOUND)
|
||||
add_subdirectory(UnitTests)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# TODO: Add DSPSpy. Preferrably make it option() and cpack component
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
macro(add_dolphin_test target srcs libs)
|
||||
add_executable(Tests/${target} EXCLUDE_FROM_ALL ${srcs})
|
||||
target_link_libraries(Tests/${target} ${libs} ${GTEST_BOTH_LIBRARIES})
|
||||
target_link_libraries(Tests/${target} ${libs} gtest)
|
||||
add_dependencies(unittests Tests/${target})
|
||||
add_test(NAME ${target} COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/Tests/${target})
|
||||
endmacro(add_dolphin_test)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue