on 42301fa help sign in
unity8/plugins/Utils/CMakeLists.txt
44 lines 1.2 kB history raw
1include_directories(
2 ${CMAKE_CURRENT_SOURCE_DIR}
3 ${CMAKE_CURRENT_BINARY_DIR}
4 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
5 ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
6 ${GIO_INCLUDE_DIRS}
7)
9set(QMLPLUGIN_SRC
10 activefocuslogger.cpp
11 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
12 applicationsfiltermodel.cpp
13 constants.cpp
14 WindowInputMonitor.cpp
15 inputwatcher.cpp
16 qlimitproxymodelqml.cpp
17 unitysortfilterproxymodelqml.cpp
18 Timer.cpp
19 unitymenumodelpaths.cpp
20 windowkeysfilter.cpp
21 windowscreenshotprovider.cpp
22 easingcurve.cpp
23 windowstatestorage.cpp
24 timezoneFormatter.cpp
25 inputeventgenerator.cpp
26 deviceconfigparser.cpp
27 plugin.cpp
28 )
30add_library(Utils-qml SHARED
31 ${QMLPLUGIN_SRC}
32 )
34target_link_libraries(Utils-qml ${GIO_LDFLAGS})
36# Because this is an internal support library, we want
37# to expose all symbols in it. Consider changing this
38# either to a static library or just using the
39# files directly in targets.
40set_target_properties(Utils-qml PROPERTIES COMPILE_FLAGS -fvisibility=default)
42qt5_use_modules(Utils-qml Qml Quick DBus Network Gui Sql Concurrent)
44add_unity8_plugin(Utils 0.1 Utils TARGETS Utils-qml)