on a142f21 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 constants.cpp
13 HomeKeyWatcher.cpp
14 inputwatcher.cpp
15 qlimitproxymodelqml.cpp
16 unitysortfilterproxymodelqml.cpp
17 relativetimeformatter.cpp
18 timeformatter.cpp
19 Timer.cpp
20 unitymenumodelpaths.cpp
21 windowkeysfilter.cpp
22 windowscreenshotprovider.cpp
23 easingcurve.cpp
24 windowstatestorage.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)