on 4e77f91 help sign in
unity8/plugins/Utils/CMakeLists.txt
36 lines 900 B history raw
1# Dependencies
2include(FindPkgConfig)
4pkg_search_module(GIO REQUIRED gio-2.0)
6include_directories(
7 ${CMAKE_CURRENT_SOURCE_DIR}
8 ${CMAKE_CURRENT_BINARY_DIR}
9 ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
10 ${GIO_INCLUDE_DIRS}
13set(QMLPLUGIN_SRC
14 qlimitproxymodelqml.cpp
15 qsortfilterproxymodelqml.cpp
16 timeformatter.cpp
17 unitymenumodelpaths.cpp
18 easingcurve.cpp
19 plugin.cpp
20 )
22add_library(Utils-qml SHARED
23 ${QMLPLUGIN_SRC}
24 )
26target_link_libraries(Utils-qml ${GIO_LDFLAGS})
28# Because this is an internal support library, we want
29# to expose all symbols in it. Consider changing this
30# either to a static library or just using the
31# files directly in targets.
32set_target_properties(Utils-qml PROPERTIES COMPILE_FLAGS -fvisibility=default)
34qt5_use_modules(Utils-qml Qml Quick DBus Network XmlPatterns Gui Concurrent)
36add_unity8_plugin(Utils 0.1 Utils TARGETS Utils-qml)