1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 14:28:24 +01:00

Fix make test

This commit is contained in:
Dominik Schmidt 2014-08-21 12:10:48 +02:00
parent f8511152e3
commit ba9071753a
3 changed files with 5 additions and 7 deletions

View File

@ -421,6 +421,11 @@ ADD_SUBDIRECTORY( thirdparty )
ADD_SUBDIRECTORY( src )
ADD_SUBDIRECTORY( admin )
IF(BUILD_TESTS)
enable_testing()
ADD_SUBDIRECTORY( src/tests )
ENDIF()
# Add all targets to the build-tree export set
set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/Tomahawk" CACHE PATH "Installation directory for CMake files")
set(CMAKE_INSTALL_FULL_CMAKEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_CMAKEDIR}")

View File

@ -26,5 +26,3 @@ if(WITH_CRASHREPORTER)
add_subdirectory( crashreporter )
endif()
# tests
add_subdirectory( tests )

View File

@ -1,13 +1,8 @@
if( BUILD_TESTS )
setup_qt()
enable_testing()
include_directories(${CMAKE_CURRENT_LIST_DIR}/../src/tomahawk ${CMAKE_CURRENT_LIST_DIR}/../src/libtomahawk)
include(tomahawk_add_test.cmake)
tomahawk_add_test(Result)
tomahawk_add_test(Query)
tomahawk_add_test(Database)
endif()