mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Fix make test
This commit is contained in:
@@ -421,6 +421,11 @@ ADD_SUBDIRECTORY( thirdparty )
|
|||||||
ADD_SUBDIRECTORY( src )
|
ADD_SUBDIRECTORY( src )
|
||||||
ADD_SUBDIRECTORY( admin )
|
ADD_SUBDIRECTORY( admin )
|
||||||
|
|
||||||
|
IF(BUILD_TESTS)
|
||||||
|
enable_testing()
|
||||||
|
ADD_SUBDIRECTORY( src/tests )
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# Add all targets to the build-tree export set
|
# 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_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/Tomahawk" CACHE PATH "Installation directory for CMake files")
|
||||||
set(CMAKE_INSTALL_FULL_CMAKEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_CMAKEDIR}")
|
set(CMAKE_INSTALL_FULL_CMAKEDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_CMAKEDIR}")
|
||||||
|
@@ -26,5 +26,3 @@ if(WITH_CRASHREPORTER)
|
|||||||
add_subdirectory( crashreporter )
|
add_subdirectory( crashreporter )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# tests
|
|
||||||
add_subdirectory( tests )
|
|
||||||
|
@@ -1,13 +1,8 @@
|
|||||||
if( BUILD_TESTS )
|
|
||||||
setup_qt()
|
setup_qt()
|
||||||
|
|
||||||
enable_testing()
|
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/../src/tomahawk ${CMAKE_CURRENT_LIST_DIR}/../src/libtomahawk)
|
include_directories(${CMAKE_CURRENT_LIST_DIR}/../src/tomahawk ${CMAKE_CURRENT_LIST_DIR}/../src/libtomahawk)
|
||||||
include(tomahawk_add_test.cmake)
|
include(tomahawk_add_test.cmake)
|
||||||
|
|
||||||
tomahawk_add_test(Result)
|
tomahawk_add_test(Result)
|
||||||
tomahawk_add_test(Query)
|
tomahawk_add_test(Query)
|
||||||
tomahawk_add_test(Database)
|
tomahawk_add_test(Database)
|
||||||
|
|
||||||
endif()
|
|
||||||
|
Reference in New Issue
Block a user