@@ -1,13 +1,17 @@
1+pkg_check_modules(GLIB REQUIRED glib-2.0>=2.32)
1pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
2pkg_check_modules(GSETTINGS_QT REQUIRED gsettings-qt)
2pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=3)
3pkg_check_modules(LAUNCHER_API REQUIRED unity-shell-launcher=3)
3pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=1)
4pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=1)
5+pkg_check_modules(UPSTART_APP_LAUNCH REQUIRED upstart-app-launch-2)
5include_directories(
7include_directories(
6 ${CMAKE_CURRENT_BINARY_DIR}
8 ${CMAKE_CURRENT_BINARY_DIR}
7 ${CMAKE_SOURCE_DIR}/plugins/AccountsService
9 ${CMAKE_SOURCE_DIR}/plugins/AccountsService
8 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher
10 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher
9 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/backend
11 ${CMAKE_SOURCE_DIR}/plugins/Unity/Launcher/backend
10 ${GSETTINGS_QT_INCLUDE_DIRS}
13 ${GSETTINGS_QT_INCLUDE_DIRS}
14+ ${UPSTART_APP_LAUNCH_INCLUDE_DIRS}
13add_definitions(-DSM_BUSNAME=sessionBus)
17add_definitions(-DSM_BUSNAME=sessionBus)
@@ -49,7 +53,11 @@ add_executable(launchermodeltestExec
49 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
53 ${APPLICATION_API_INCLUDEDIR}/unity/shell/application/ApplicationManagerInterface.h
50 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
54 ${LAUNCHER_API_INCLUDEDIR}/unity/shell/application/ApplicationInfoInterface.h
52−target_link_libraries(launchermodeltestExec ${GSETTINGS_QT_LDFLAGS} )
56+target_link_libraries(launchermodeltestExec
58+ ${GSETTINGS_QT_LDFLAGS}
59+ ${UPSTART_APP_LAUNCH_LDFLAGS}
53qt5_use_modules(launchermodeltestExec Test Core DBus)
61qt5_use_modules(launchermodeltestExec Test Core DBus)
55# copy .desktop files into build directory for shadow builds
63# copy .desktop files into build directory for shadow builds