Remove most uses of QT_QTCORE_LIBRARY for linking
Qt is aware of its dependencies, so this is almost always redundant.
This commit is contained in:
parent
c37776d67d
commit
01e95b0129
@ -22,7 +22,7 @@ set(qtjolie_LIB_SRCS
|
||||
|
||||
kde4_add_library(QtJolie ${LIBRARY_TYPE} ${qtjolie_LIB_SRCS})
|
||||
|
||||
target_link_libraries(QtJolie ${QT_QTCORE_LIBRARY} ${QT_QTNETWORK_LIBRARY})
|
||||
target_link_libraries(QtJolie ${QT_QTNETWORK_LIBRARY})
|
||||
|
||||
install(TARGETS QtJolie
|
||||
DESTINATION ${LIB_INSTALL_DIR})
|
||||
|
@ -5,7 +5,7 @@ include(ECMMarkAsTest)
|
||||
MACRO(SODEP_UNIT_TESTS)
|
||||
FOREACH(_testname ${ARGN})
|
||||
kde4_add_unit_test(${_testname} TESTNAME plasma-sodep-${_testname} NOGUI ${_testname}.cpp)
|
||||
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTTEST_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
||||
target_link_libraries(${_testname} ${QT_QTTEST_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
||||
ecm_mark_as_test(${_testname})
|
||||
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
||||
ENDFOREACH(_testname)
|
||||
@ -14,7 +14,7 @@ ENDMACRO(SODEP_UNIT_TESTS)
|
||||
MACRO(SODEP_EXECUTABLE_TESTS)
|
||||
FOREACH(_testname ${ARGN})
|
||||
add_executable(${_testname} NOGUI ${_testname}.cpp)
|
||||
target_link_libraries(${_testname} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
||||
target_link_libraries(${_testname} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} QtJolie)
|
||||
ecm_mark_as_test(${_testname})`
|
||||
add_definitions(-DDATA_DIR="\\"${CMAKE_CURRENT_SOURCE_DIR}\\"")
|
||||
ENDFOREACH(_testname)
|
||||
|
Loading…
Reference in New Issue
Block a user