Merge pull request #2071 from Sonicadvance1/Android_fix_unittests

[Android] Fix building unit tests.
This commit is contained in:
Lioncash 2015-02-18 21:19:18 -05:00
commit bdca0dac29
2 changed files with 4 additions and 4 deletions

View File

@ -2,6 +2,9 @@ set(LIBS core gtest)
if(APPLE) if(APPLE)
list(APPEND LIBS ${FOUNDATION_LIBRARY} ${CORESERV_LIBRARY}) list(APPEND LIBS ${FOUNDATION_LIBRARY} ${CORESERV_LIBRARY})
endif() endif()
if(ANDROID)
set(LIBS ${LIBS} android log)
endif()
macro(add_dolphin_test target srcs) macro(add_dolphin_test target srcs)
# Since this is a Core dependency, it can't be linked as a library and has # Since this is a Core dependency, it can't be linked as a library and has
# to be linked as an object file. Otherwise CMake inserts the library after # to be linked as an object file. Otherwise CMake inserts the library after

View File

@ -1,4 +1 @@
# This test currently doesn't link correctly when EGL is enabled due to issues with the GLInterface design add_dolphin_test(VertexLoaderTest VertexLoaderTest.cpp)
if(NOT USE_EGL)
add_dolphin_test(VertexLoaderTest VertexLoaderTest.cpp)
endif()