~cimi/ubuntu-system-settings/wizard.privacy

« back to all changes in this revision

Viewing changes to wizard/CMakeLists.txt

  • Committer: Andrea Cimitan
  • Date: 2014-04-11 12:07:23 UTC
  • mfrom: (662.2.47 wizard.wifi)
  • Revision ID: andrea.cimitan@gmail.com-20140411120723-hzbv5ekjurprc6uw
* Bump version for new package ubuntu-system-settings-wizard
[ Andrea Cimitan ]
* Detect SIM and if negative show no sim page
[ Victor R. Ruiz ]
* Autopilot: Move launch_system_settings to a helper module.
[ Iain Lane ]
* Hide 'Serial' and 'IMEI' entries when the info isn't available
* Don't look for PkgConfig explicitly, breaks with Multi-Arch.
  FindPkgConfig.cmake does this for us anyway.
[ CI bot ]
* Resync trunk
[ Diego Sarmentero ]
* Add click updates support. .

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
pkg_check_modules(UNITY-MIR REQUIRED unity-mir)
 
2
 
 
3
include_directories(
 
4
    ${Qt5Gui_PRIVATE_INCLUDE_DIRS}
 
5
    ${UNITY-MIR_INCLUDE_DIRS}
 
6
)
 
7
 
1
8
add_definitions(-DI18N_DOMAIN="ubuntu-system-settings")
2
9
add_definitions(-DPLUGIN_PRIVATE_MODULE_DIR="${PLUGIN_PRIVATE_MODULE_DIR}")
3
10
add_definitions(-DPLUGIN_MANIFEST_DIR="${PLUGIN_MANIFEST_DIR}")
4
11
add_definitions(-DPLUGIN_QML_DIR="${PLUGIN_QML_DIR}")
5
12
add_definitions(-DPLUGIN_MODULE_DIR="${PLUGIN_MODULE_DIR}")
6
13
 
 
14
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=plugindir unity-shell-api OUTPUT_VARIABLE SHELL_PLUGINDIR OUTPUT_STRIP_TRAILING_WHITESPACE)
 
15
if(SHELL_PLUGINDIR STREQUAL "")
 
16
    message(FATAL_ERROR "Could not determine plugin import dir.")
 
17
endif()
 
18
 
 
19
add_definitions(-DSHELL_PLUGINDIR="${SHELL_PLUGINDIR}")
 
20
 
7
21
set(WIZARD_ROOT "${CMAKE_INSTALL_PREFIX}/share/ubuntu/settings/wizard")
8
22
add_definitions(-DWIZARD_ROOT="${WIZARD_ROOT}")
9
23
 
22
36
    ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
23
37
)
24
38
 
 
39
target_link_libraries(system-settings-wizard
 
40
    ${UNITY-MIR_LIBRARIES}
 
41
)
 
42
 
25
43
qt5_use_modules(system-settings-wizard Core Gui Quick Qml)
26
44
 
27
45
add_subdirectory(Utils)
28
46
 
29
47
install(TARGETS system-settings-wizard RUNTIME DESTINATION bin)
30
 
install(FILES ubuntu-system-settings-wizard.conf DESTINATION share/upstart)
 
48
install(FILES ubuntu-system-settings-wizard.conf DESTINATION share/upstart/sessions)
31
49
 
32
50
install(DIRECTORY qml DESTINATION ${WIZARD_ROOT})