~day-scope-team/day-scope/trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Gary.Wzl
  • Date: 2016-07-14 07:07:30 UTC
  • mfrom: (51.1.1 day-scope)
  • Revision ID: gary.wang@canonical.com-20160714070730-e9vl3fbhsiamgca2
1.detect arch when cmake to make sure click package name correct.
2.do not generate file in build-in source folder when shadow build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
set(VERSION "1.5")
 
1
set(VERSION "1.5.2")
2
2
 
3
3
# Supress qDebug() output
4
4
ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )
6
6
project(day CXX)
7
7
cmake_minimum_required(VERSION 2.8.12)
8
8
 
 
9
# This command figures out the target architecture and puts it into the manifest file
 
10
execute_process(
 
11
  COMMAND dpkg-architecture -qDEB_HOST_ARCH
 
12
  OUTPUT_VARIABLE ARCH
 
13
  OUTPUT_STRIP_TRAILING_WHITESPACE
 
14
)
 
15
 
9
16
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -pedantic -Wall -Wextra -s")
10
17
set(UBUNTU_PROJECT_TYPE "Scope" CACHE INTERNAL "Tells QtCreator this is a Scope project")
11
18
 
32
39
set(GETTEXT_DOMAIN ${SCOPE_NAME})
33
40
set(AUTHOR "Canonical Ltd.")
34
41
set(MAINTAINER "Kyle Nitzsche <kyle.nitzsche@canonical.com>")
35
 
set(ARCH "armhf")
36
42
 
37
43
# AUTOPILOT GENERIC TESTS CONTROL ===============================
38
44
# These settings control whether generic autopilot tests are run
75
81
)
76
82
 
77
83
configure_file (
78
 
    "manifest.json.in"
79
 
    "manifest.json"
 
84
    "${CMAKE_CURRENT_SOURCE_DIR}/manifest.json.in"
 
85
    "${CMAKE_CURRENT_BINARY_DIR}/manifest.json"
80
86
)
81
87
configure_file (
82
 
    "security.json.in"
83
 
    "${PKG_PREFIX}.${PKG}_${APP}.security.json"
 
88
    "${CMAKE_CURRENT_SOURCE_DIR}/security.json.in"
 
89
    "${CMAKE_CURRENT_BINARY_DIR}/${PKG_PREFIX}.${PKG}_${APP}.security.json"
84
90
)
85
91
 
86
92
add_subdirectory(tests)
89
95
add_subdirectory(data)
90
96
add_subdirectory(po)
91
97
 
92
 
install(FILES manifest.json DESTINATION "/")
93
 
install(FILES "${PKG_PREFIX}.${PKG}_${APP}.security.json" DESTINATION "/")
 
98
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json DESTINATION "/")
 
99
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PKG_PREFIX}.${PKG}_${APP}.security.json" DESTINATION "/")