diff --git a/Tests/Wrapping/CMakeLists.txt b/Tests/Wrapping/CMakeLists.txt index 962a7cdcf..cf8487180 100644 --- a/Tests/Wrapping/CMakeLists.txt +++ b/Tests/Wrapping/CMakeLists.txt @@ -105,7 +105,6 @@ IF (QT_FOUND) INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} ) INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} ) - LINK_LIBRARIES( ${QT_LIBRARIES} ) QT_WRAP_CPP (wraplibQT QT_SRCS SRCS) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/foo.ui.in @@ -121,6 +120,7 @@ IF (QT_FOUND) ADD_EXECUTABLE (qtwrapping qtwrappingmain.cxx QTUI_S_SRCS) + TARGET_LINK_LIBRARIES( qtwrapping ${QT_LIBRARIES} ) ENDIF (QT_FOUND) #