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:
parent
f8511152e3
commit
ba9071753a
@ -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}")
|
||||
|
@ -26,5 +26,3 @@ if(WITH_CRASHREPORTER)
|
||||
add_subdirectory( crashreporter )
|
||||
endif()
|
||||
|
||||
# tests
|
||||
add_subdirectory( tests )
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user