1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Only link QtTest in unit tests.

This commit is contained in:
John Maguire 2010-03-24 14:56:03 +00:00
parent 4b4603e138
commit fc522602bd
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,6 @@ set(QT_USE_QTOPENGL 1)
set(QT_USE_QTSQL 1)
set(QT_USE_QTNETWORK 1)
set(QT_USE_QTXML 1)
set(QT_USE_QTTEST 1)
if(UNIX AND NOT APPLE)
set(QT_USE_QTDBUS 1)
endif(UNIX AND NOT APPLE)

View File

@ -5,6 +5,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/gmock/gtest/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../3rdparty/gmock/gtest)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/../src)
include_directories(${QT_QTTEST_INCLUDE_DIR})
set(GTEST-SOURCES
../3rdparty/gmock/gtest/src/gtest.cc
@ -42,7 +43,7 @@ set(TESTUTILS-MOC-HEADERS
qt4_wrap_cpp(TESTUTILS-SOURCES-MOC ${TESTUTILS-MOC-HEADERS})
add_library(test_utils EXCLUDE_FROM_ALL ${TESTUTILS-SOURCES} ${TESTUTILS-SOURCES-MOC})
target_link_libraries(test_utils gmock ${QT_LIBRARIES})
target_link_libraries(test_utils gmock ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY})
add_custom_target(test
echo "Running tests"