on 4ea940f help sign in
unity8/plugins/Utils/CMakeLists.txt
42 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 Timer.cpp
19 unitymenumodelpaths.cpp
20 windowkeysfilter.cpp
21 windowscreenshotprovider.cpp
22 easingcurve.cpp
23 windowstatestorage.cpp
24 timezoneFormatter.cpp
25 plugin.cpp
26 )
28add_library(Utils-qml SHARED
29 ${QMLPLUGIN_SRC}
30 )
32target_link_libraries(Utils-qml ${GIO_LDFLAGS})
34# Because this is an internal support library, we want
35# to expose all symbols in it. Consider changing this
36# either to a static library or just using the
37# files directly in targets.
38set_target_properties(Utils-qml PROPERTIES COMPILE_FLAGS -fvisibility=default)
40qt5_use_modules(Utils-qml Qml Quick DBus Network Gui Sql Concurrent)
42add_unity8_plugin(Utils 0.1 Utils TARGETS Utils-qml)