mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
kget: testing build fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ab1b77b780
commit
7aa97df679
2 changed files with 14 additions and 2 deletions
|
@ -50,6 +50,13 @@ if(CMAKE_BUILD_TYPE MATCHES Debug)
|
|||
add_definitions(-DDEBUG)
|
||||
endif()
|
||||
|
||||
# TODO: utterly broken
|
||||
set(KGET_TESTING FALSE)
|
||||
|
||||
if(KGET_TESTING)
|
||||
add_definitions(-DDO_KGET_TEST)
|
||||
endif()
|
||||
|
||||
if(QGPGME_FOUND)
|
||||
add_definitions(-DHAVE_QGPGME)
|
||||
include_directories(${QGPGME_INCLUDE_DIR})
|
||||
|
@ -62,7 +69,7 @@ add_subdirectory(transfer-plugins)
|
|||
add_subdirectory(extensions)
|
||||
add_subdirectory(desktop)
|
||||
add_subdirectory(plasma)
|
||||
if(ENABLE_TESTING)
|
||||
if(KGET_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
|
@ -241,6 +248,12 @@ target_link_libraries(kget
|
|||
kgetcore
|
||||
)
|
||||
|
||||
if (KGET_TESTING)
|
||||
target_link_libraries(kget
|
||||
${QT_QTTEST_LIBRARY}
|
||||
)
|
||||
endif()
|
||||
|
||||
if (QGPGME_FOUND)
|
||||
target_link_libraries(kget ${QGPGME_LIBRARIES})
|
||||
endif(QGPGME_FOUND)
|
||||
|
|
|
@ -2,7 +2,6 @@ include_directories(
|
|||
../
|
||||
)
|
||||
|
||||
add_definitions(-DDO_KGET_TEST)
|
||||
set(kget_test_transfers_SRCS
|
||||
testkget.cpp
|
||||
testtransfers.cpp
|
||||
|
|
Loading…
Add table
Reference in a new issue