~elementary-apps/snap-elementary/snap

« back to all changes in this revision

Viewing changes to data/CMakeLists.txt

  • Committer: RabbitBot
  • Author(s): Lains
  • Date: 2016-09-15 00:28:15 UTC
  • mfrom: (400.1.2 snap-elementary-r401)
  • Revision ID: rabbitbot-20160915002815-19sgi1v2g36q0hd5
Snap Photobooth "org.pantheon.snap":

* Fixed filenames to the AppID name.
* Fixed code to have it point to a new AppID.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# We need to create two temporary desktop files in order to have all translations available.
4
4
set (APP_NAME "Camera")
5
 
configure_file(snap-photobooth.desktop.in.in ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.desktop.in)
 
5
configure_file(org.pantheon.snap.desktop.in.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.desktop.in)
6
6
set (APP_NAME "Snap")
7
 
configure_file(snap-photobooth.desktop.in.in ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth-original.desktop.in)
 
7
configure_file(org.pantheon.snap.desktop.in.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap-original.desktop.in)
8
8
if (BUILD_FOR_ELEMENTARY)
9
 
    configure_file_translation(${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.desktop ${CMAKE_SOURCE_DIR}/po/)
 
9
    configure_file_translation(${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.desktop ${CMAKE_SOURCE_DIR}/po/)
10
10
else ()
11
 
    configure_file_translation(${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth-original.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.desktop ${CMAKE_SOURCE_DIR}/po/)
 
11
    configure_file_translation(${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap-original.desktop.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.desktop ${CMAKE_SOURCE_DIR}/po/)
12
12
endif ()
13
13
 
14
 
configure_file_translation(${CMAKE_CURRENT_SOURCE_DIR}/snap-photobooth.appdata.xml.in ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.appdata.xml ${CMAKE_SOURCE_DIR}/po/)
 
14
configure_file_translation(${CMAKE_CURRENT_SOURCE_DIR}/org.pantheon.snap.appdata.xml.in ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.appdata.xml ${CMAKE_SOURCE_DIR}/po/)
15
15
 
16
 
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.appdata.xml DESTINATION share/appdata)
17
 
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/snap-photobooth.desktop DESTINATION share/applications)
 
16
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.appdata.xml DESTINATION share/appdata)
 
17
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/org.pantheon.snap.desktop DESTINATION share/applications)