~osomon/ubuntu-system-settings/autopkgtest

« back to all changes in this revision

Viewing changes to wizard/CMakeLists.txt

  • Committer: CI bot
  • Author(s): Michael Terry
  • Date: 2014-12-02 19:39:44 UTC
  • mfrom: (1202.1.2 drop-wizard)
  • Revision ID: ps-jenkins@lists.canonical.com-20141202193944-iv7x24asrsor6tyi
Drop wizard code from ubuntu-system-settings, moving it to unity8. 
Approved by: Ken VanDine

Show diffs side-by-side

added added

removed removed

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