~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-2106

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Nick Dedekind
  • Date: 2013-09-25 08:54:58 UTC
  • mto: This revision was merged to the branch mainline in revision 50.
  • Revision ID: nicholas.dedekind@gmail.com-20130925085458-35zo920vi41gq173
Restructured qml folders

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
LIST(APPEND QT_PKGCONFIG_DEPENDENCIES "Qt5Quick")
22
22
 
23
23
set(UBUNTU_QML_DIR ${QT_IMPORTS_DIR}/Ubuntu)
 
24
set(SETTINGS_COMPONENTS_DIR ${CMAKE_INSTALL_DATADIR}/ubuntu-settings-components)
24
25
 
25
26
# Enable QML debugging
26
27
if(CMAKE_BUILD_TYPE MATCHES DEBUG OR CMAKE_BUILD_TYPE MATCHES "Debug")
69
70
 
70
71
# Install subdirectories
71
72
set(QML_DIRS
72
 
    Ubuntu/SettingsComponents
 
73
    Ubuntu/Settings
73
74
    )
74
75
 
75
76
# Install arch-independent assets under /usr/share
76
77
install(DIRECTORY ${QML_DIRS}
77
 
    DESTINATION ${CMAKE_INSTALL_DATADIR}
 
78
    DESTINATION ${SETTINGS_COMPONENTS_DIR}
78
79
    )
79
80
 
80
81
install(CODE "EXECUTE_PROCESS(COMMAND
81
82
             mkdir -p \$ENV{DESTDIR}${UBUNTU_QML_DIR})")
82
83
install(CODE "EXECUTE_PROCESS(COMMAND
83
 
             ln -sf ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/SettingsComponents
84
 
                    \$ENV{DESTDIR}${UBUNTU_QML_DIR}/SettingsComponents)")
 
84
             ln -sf ${CMAKE_INSTALL_PREFIX}/${SETTINGS_COMPONENTS_DIR}/Settings
 
85
                    \$ENV{DESTDIR}${UBUNTU_QML_DIR}/Settings)")
85
86
 
86
87
# Tests
87
88
enable_testing()