CMake: move unittests target to UnitTests
This commit is contained in:
parent
ea35549e00
commit
be2f4466e3
|
@ -806,13 +806,11 @@ include_directories("${PROJECT_BINARY_DIR}/Source/Core")
|
||||||
message(STATUS "Using static gtest from Externals")
|
message(STATUS "Using static gtest from Externals")
|
||||||
add_subdirectory(Externals/gtest EXCLUDE_FROM_ALL)
|
add_subdirectory(Externals/gtest EXCLUDE_FROM_ALL)
|
||||||
|
|
||||||
enable_testing()
|
########################################
|
||||||
add_custom_target(unittests)
|
# Process Dolphin source now that all setup is complete
|
||||||
add_custom_command(TARGET unittests POST_BUILD COMMAND ${CMAKE_CTEST_COMMAND})
|
#
|
||||||
|
|
||||||
add_subdirectory(Source)
|
add_subdirectory(Source)
|
||||||
|
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Install shared data files
|
# Install shared data files
|
||||||
#
|
#
|
||||||
|
|
|
@ -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)
|
set(LIBS core gtest_main)
|
||||||
if(APPLE)
|
if(APPLE)
|
||||||
list(APPEND LIBS ${FOUNDATION_LIBRARY} ${CORESERV_LIBRARY})
|
list(APPEND LIBS ${FOUNDATION_LIBRARY} ${CORESERV_LIBRARY})
|
||||||
|
|
Loading…
Reference in New Issue