on bbbdccd help sign in
unity8/tests/mocks/Unity/CMakeLists.txt
57 lines 1.8 kB history raw
1add_subdirectory(Application)
2add_subdirectory(Connectivity)
3add_subdirectory(Indicators)
4add_subdirectory(InputInfo)
5add_subdirectory(Launcher)
6add_subdirectory(Notifications)
7add_subdirectory(DashCommunicator)
8add_subdirectory(Screens)
10pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
11pkg_check_modules(SCOPES_API REQUIRED unity-shell-scopes=9)
13include_directories(
14 ${CMAKE_CURRENT_BINARY_DIR}
15 ${Qt5Core_INCLUDE_DIRS}
16 ${Qt5Quick_INCLUDE_DIRS}
17 ${GOBJECT_INCLUDE_DIRS}
20add_definitions(-DQT_NO_KEYWORDS)
22set(UnityQML_SOURCES
23 fake_scope.cpp
24 fake_scopes.cpp
25 fake_scopesoverview.cpp
26 fake_settingsmodel.cpp
27 fake_categories.cpp
28 fake_navigation.cpp
29 fake_resultsmodel.cpp
30 fake_previewmodel.cpp
31 fake_previewstack.cpp
32 fake_previewwidgetmodel.cpp
33 fake_unity_plugin.cpp
34 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/CategoriesInterface.h
35 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/NavigationInterface.h
36 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewModelInterface.h
37 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewStackInterface.h
38 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewWidgetModelInterface.h
39 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ResultsModelInterface.h
40 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ScopeInterface.h
41 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ScopesInterface.h
42 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/SettingsModelInterface.h
45# Workaround for gcc failure LP: #1417664
46set_source_files_properties(fake_scopes.cpp PROPERTIES COMPILE_FLAGS -O1)
48add_library(FakeUnityQml MODULE ${UnityQML_SOURCES})
49target_link_libraries(FakeUnityQml
50 ${Qt5Core_LIBRARIES}
51 ${Qt5Quick_LIBRARIES}
52 ${GOBJECT_LDFLAGS}
55qt5_use_modules(FakeUnityQml Qml)
57add_unity8_mock(Unity 0.2 Unity PREFIX scopefakes TARGETS FakeUnityQml)