~oxide-developers/oxide/oxide.trunk

« back to all changes in this revision

Viewing changes to qt/tests/qmltests/CMakeLists.txt

  • Committer: Chris Coulson
  • Date: 2016-05-10 08:30:40 UTC
  • Revision ID: chris.coulson@canonical.com-20160510083040-1razl25rqr9fzq84
Use the proper cmake variables for imported libraries rather than using the names directly

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
add_library(${QML_TEST_SHARED} STATIC ${QML_TEST_SHARED_SRCS})
65
65
target_link_libraries(
66
66
    ${QML_TEST_SHARED}
67
 
    Qt5::Core
68
 
    Qt5::Gui
69
 
    Qt5::Qml
70
 
    Qt5::Test
 
67
    ${Qt5Core_LIBRARIES}
 
68
    ${Qt5Gui_LIBRARIES}
 
69
    ${Qt5Qml_LIBRARIES}
 
70
    ${Qt5Test_LIBRARIES}
71
71
    ${OXIDE_LIB}
72
72
    ${OXIDE_QUICKLIB})
73
73
set_target_properties(${QML_TEST_SHARED} PROPERTIES AUTOMOC TRUE)
96
96
    target_link_libraries(
97
97
        ${_ARGS_EXEC}
98
98
        ${QML_TEST_SHARED}
99
 
        Qt5::Core
100
 
        Qt5::Gui
101
 
        Qt5::Qml
102
 
        Qt5::Quick
103
 
        Qt5::QuickTest
104
 
        Qt5::Test
 
99
        ${Qt5Core_LIBRARIES}
 
100
        ${Qt5Gui_LIBRARIES}
 
101
        ${Qt5Qml_LIBRARIES}
 
102
        ${Qt5Quick_LIBRARIES}
 
103
        ${Qt5QuickTest_LIBRARIES}
 
104
        ${Qt5Test_LIBRARIES}
105
105
        ${OXIDE_LIB})
106
106
    target_include_directories(
107
107
        ${_ARGS_EXEC} PRIVATE