CMake: move unittests target to UnitTests

This commit is contained in:
Michael Maltese 2017-05-20 16:21:59 -07:00
parent ea35549e00
commit be2f4466e3
2 changed files with 7 additions and 5 deletions

View File

@ -806,13 +806,11 @@ include_directories("${PROJECT_BINARY_DIR}/Source/Core")
message(STATUS "Using static gtest from Externals")
add_subdirectory(Externals/gtest EXCLUDE_FROM_ALL)
enable_testing()
add_custom_target(unittests)
add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
########################################
# Process Dolphin source now that all setup is complete
#
add_subdirectory(Source)
########################################
# Install shared data files
#

View File

@ -1,3 +1,7 @@
enable_testing()
add_custom_target(unittests)
add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
set(LIBS core gtest_main)
if(APPLE)
list(APPEND LIBS ${FOUNDATION_LIBRARY} ${CORESERV_LIBRARY})