on 6ca9421 help sign in
unity8/plugins/Utils/CMakeLists.txt
44 lines 1.1 kB history raw
1pkg_search_module(GIO REQUIRED gio-2.0)
3include_directories(
4 ${CMAKE_CURRENT_SOURCE_DIR}
5 ${CMAKE_CURRENT_BINARY_DIR}
6 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
7 ${Qt5Quick_PRIVATE_INCLUDE_DIRS}
8 ${GIO_INCLUDE_DIRS}
9)
11set(QMLPLUGIN_SRC
12 activefocuslogger.cpp
13 constants.cpp
14 HomeKeyWatcher.cpp
15 inputwatcher.cpp
16 qlimitproxymodelqml.cpp
17 unitysortfilterproxymodelqml.cpp
18 relativetimeformatter.cpp
19 timeformatter.cpp
20 Timer.cpp
21 unitymenumodelpaths.cpp
22 windowkeysfilter.cpp
23 windowscreenshotprovider.cpp
24 easingcurve.cpp
25 windowstatestorage.cpp
26 timezoneFormatter.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)