on 4e77f91 help sign in
unity8/tests/mocks/Unity/CMakeLists.txt
51 lines 1.6 kB history raw
1add_subdirectory(Application)
2add_subdirectory(Indicators)
3add_subdirectory(Launcher)
4add_subdirectory(Notifications)
6pkg_search_module(DEE dee-1.0 REQUIRED)
7pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
8pkg_search_module(DEEQT libdee-qt5 REQUIRED)
9pkg_check_modules(SCOPES_API REQUIRED unity-shell-scopes=1)
11include_directories(
12 ${CMAKE_CURRENT_BINARY_DIR}
13 ${Qt5Core_INCLUDE_DIRS}
14 ${Qt5Quick_INCLUDE_DIRS}
15 ${DEE_INCLUDE_DIRS}
16 ${DEEQT_INCLUDE_DIRS}
19add_definitions(-DQT_NO_KEYWORDS)
21set(UnityQML_SOURCES
22 fake_scope.cpp
23 fake_scopes.cpp
24 fake_categories.cpp
25 fake_department.cpp
26 fake_resultsmodel.cpp
27 fake_previewmodel.cpp
28 fake_previewstack.cpp
29 fake_previewwidgetmodel.cpp
30 fake_unity_plugin.cpp
31 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/CategoriesInterface.h
32 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/DepartmentInterface.h
33 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewModelInterface.h
34 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewStackInterface.h
35 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewWidgetModelInterface.h
36 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ResultsModelInterface.h
37 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ScopeInterface.h
38 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ScopesInterface.h
41add_library(FakeUnityQml MODULE ${UnityQML_SOURCES})
42target_link_libraries(FakeUnityQml
43 ${Qt5Core_LIBRARIES}
44 ${Qt5Quick_LIBRARIES}
45 ${DEEQT_LDFLAGS}
46 ${GOBJECT_LDFLAGS}
49qt5_use_modules(FakeUnityQml Qml)
51add_unity8_mock(Unity 0.2 Unity PREFIX scopefakes TARGETS FakeUnityQml)