~mzanetti/unity8/fix-1648251

« back to all changes in this revision

Viewing changes to plugins/LightDM/IntegratedLightDM/CMakeLists.txt

  • Committer: Michael Zanetti
  • Date: 2016-10-13 11:02:11 UTC
  • mfrom: (2525.1.132 unity8)
  • Revision ID: michael.zanetti@canonical.com-20161013110211-tj2gly2dxaqj5t2e
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(PLUGIN_CLASSNAME "IntegratedLightDM")
 
2
 
 
3
add_definitions(-DINTEGRATED_LIGHTDM)
 
4
 
 
5
foreach(include_directory ${QMLPLUGIN_INCLUDES})
 
6
        list(APPEND RELATIVE_QMLPLUGIN_INCLUDES ../${include_directory})
 
7
endforeach()
 
8
 
 
9
include_directories(
 
10
    . #QLightDM
 
11
    ${QMLPLUGIN_INCLUDES}
 
12
    ${libunity8-private_SOURCE_DIR}
 
13
    ${CMAKE_CURRENT_BINARY_DIR}
 
14
)
 
15
 
 
16
foreach(source_file ${QMLPLUGIN_SRC})
 
17
    list(APPEND RELATIVE_QMLPLUGIN_SRC ../${source_file})
 
18
endforeach()
 
19
 
 
20
add_library(IntegratedLightDM-qml MODULE
 
21
    ${RELATIVE_QMLPLUGIN_SRC}
 
22
    )
 
23
 
 
24
target_link_libraries(IntegratedLightDM-qml
 
25
    integratedLightDM
 
26
    unity8-private
 
27
    ${LIBUSERMETRICSOUTPUT_LDFLAGS}
 
28
    )
 
29
 
 
30
qt5_use_modules(IntegratedLightDM-qml DBus Gui Qml)
 
31
add_unity8_plugin(IntegratedLightDM 0.1 LightDM/IntegratedLightDM TARGETS IntegratedLightDM-qml)
 
32
 
 
33
add_subdirectory(liblightdm)