mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
20 lines
491 B
CMake
20 lines
491 B
CMake
find_package(GTestSrc)
|
|
|
|
IF(GTESTSRC_FOUND)
|
|
enable_testing()
|
|
|
|
if (WIN32 AND (NOT CYGWIN) AND (NOT MINGW))
|
|
set(gtest_disable_pthreads ON)
|
|
set(gtest_force_shared_crt ON)
|
|
endif()
|
|
|
|
add_subdirectory(${GTEST_SOURCE_DIR} ${CMAKE_BINARY_DIR}/googletest)
|
|
include_directories(SYSTEM ${GTEST_INCLUDE_DIR})
|
|
|
|
set(TEST_LIBRARIES gtest gtest_main)
|
|
|
|
add_custom_target(tests ALL)
|
|
add_subdirectory(perftest)
|
|
add_subdirectory(unittest)
|
|
|
|
ENDIF(GTESTSRC_FOUND)
|