on 6ca9421 help sign in
unity8/tests/mocks/Unity/CMakeLists.txt
56 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)
9pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
10pkg_check_modules(SCOPES_API REQUIRED unity-shell-scopes=7)
12include_directories(
13 ${CMAKE_CURRENT_BINARY_DIR}
14 ${Qt5Core_INCLUDE_DIRS}
15 ${Qt5Quick_INCLUDE_DIRS}
16 ${GOBJECT_INCLUDE_DIRS}
19add_definitions(-DQT_NO_KEYWORDS)
21set(UnityQML_SOURCES
22 fake_scope.cpp
23 fake_scopes.cpp
24 fake_scopesoverview.cpp
25 fake_settingsmodel.cpp
26 fake_categories.cpp
27 fake_navigation.cpp
28 fake_resultsmodel.cpp
29 fake_previewmodel.cpp
30 fake_previewstack.cpp
31 fake_previewwidgetmodel.cpp
32 fake_unity_plugin.cpp
33 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/CategoriesInterface.h
34 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/NavigationInterface.h
35 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewModelInterface.h
36 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewStackInterface.h
37 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/PreviewWidgetModelInterface.h
38 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ResultsModelInterface.h
39 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ScopeInterface.h
40 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/ScopesInterface.h
41 ${SCOPES_API_INCLUDEDIR}/unity/shell/scopes/SettingsModelInterface.h
44# Workaround for gcc failure LP: #1417664
45set_source_files_properties(fake_scopes.cpp PROPERTIES COMPILE_FLAGS -O1)
47add_library(FakeUnityQml MODULE ${UnityQML_SOURCES})
48target_link_libraries(FakeUnityQml
49 ${Qt5Core_LIBRARIES}
50 ${Qt5Quick_LIBRARIES}
51 ${GOBJECT_LDFLAGS}
54qt5_use_modules(FakeUnityQml Qml)
56add_unity8_mock(Unity 0.2 Unity PREFIX scopefakes TARGETS FakeUnityQml)