~calls-scope-team/calls-scope/calls-scope-trunk

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Gary.Wzl
  • Date: 2016-07-13 03:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 66.
  • Revision ID: gary.wang@canonical.com-20160713031028-pgv5x0112jywf4us
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.14")
 
1
set(VERSION "1.16")
2
2
# Supress qDebug() output
3
3
ADD_DEFINITIONS( -DQT_NO_DEBUG_OUTPUT )
4
4
 
 
5
# This command figures out the target architecture and puts it into the manifest file
 
6
execute_process(
 
7
  COMMAND dpkg-architecture -qDEB_HOST_ARCH
 
8
  OUTPUT_VARIABLE ARCH
 
9
  OUTPUT_STRIP_TRAILING_WHITESPACE
 
10
)
 
11
 
5
12
project(calls CXX)
6
13
cmake_minimum_required(VERSION 2.8.10)
7
14
 
62
69
#find_package(PkgConfig REQUIRED)
63
70
include(FindPkgConfig)
64
71
 
65
 
 
66
72
#must have installed libhistoryservice-dev and qtpim5-dev
67
73
pkg_check_modules(UNITY_SCOPES REQUIRED
68
74
    "libunity-scopes >= 0.6.0"
74
80
)
75
81
 
76
82
configure_file (
77
 
    "manifest.json.in"
78
 
    "manifest.json"
 
83
    "${CMAKE_CURRENT_SOURCE_DIR}/manifest.json.in"
 
84
    "${CMAKE_CURRENT_BINARY_DIR}/manifest.json"
79
85
)
80
86
configure_file (
81
 
    "security.json.in"
82
 
    "${PKG_PREFIX}.${PKG}_${APP}.security.json"
 
87
    "${CMAKE_CURRENT_SOURCE_DIR}/security.json.in"
 
88
    "${CMAKE_CURRENT_BINARY_DIR}/${PKG_PREFIX}.${PKG}_${APP}.security.json"
83
89
)
84
90
 
85
91
add_subdirectory(tests)
88
94
add_subdirectory(data)
89
95
add_subdirectory(po)
90
96
 
91
 
install(FILES ${CMAKE_BINARY_DIR}/manifest.json DESTINATION "/")
92
 
install(FILES "${CMAKE_BINARY_DIR}/${PKG_PREFIX}.${PKG}_${APP}.security.json" DESTINATION "/")
 
97
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json DESTINATION "/")
 
98
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PKG_PREFIX}.${PKG}_${APP}.security.json" DESTINATION "/")
93
99