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

@ -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})