File: CMakeLists.txt

package info (click to toggle)
qutecom 2.2.1%2Bdfsg1-5.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 59,380 kB
  • ctags: 30,307
  • sloc: ansic: 188,334; cpp: 100,985; sh: 7,785; python: 1,666; xml: 955; objc: 623; makefile: 491; cs: 70; asm: 57; php: 28
file content (65 lines) | stat: -rw-r--r-- 1,387 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
include(CMakeLists-owbuild.txt)

cmake_minimum_required(VERSION 2.4.6)

project(qutecom)

# Global variables
set(APPLICATION_NAME QuteCom  CACHE STRING "Name of application")
set(APPLICATION_VERSION "2.2" CACHE STRING "Version of application")

# Split APPLICATION_VERSION into separate vars:
# If APPLICATION_VERSION is x.y.z, then APPLICATION_VERSION_1 will be x,
# APPLICATION_VERSION_2 will be y and so on.
set(tmp "${APPLICATION_VERSION}.0.0.0")
set(tmp_rx "([0-9]+)\\.([0-9]+)\\.([0-9]+)\\.([0-9]+).*")
string(REGEX REPLACE ${tmp_rx} "\\1" APPLICATION_VERSION_1 "${tmp}")
string(REGEX REPLACE ${tmp_rx} "\\2" APPLICATION_VERSION_2 "${tmp}")
string(REGEX REPLACE ${tmp_rx} "\\3" APPLICATION_VERSION_3 "${tmp}")
string(REGEX REPLACE ${tmp_rx} "\\4" APPLICATION_VERSION_4 "${tmp}")

# Add options values
include(DefineQuteComOptions.cmake)
include(DefineInstallationPaths.cmake)
include(DefineCPackDefaults.cmake)

find_package(Qt4 REQUIRED)

subdirs(
	libs/3rdparty
)

if (WIN32)
	subdirs(
		libs/3rdparty/portaudio
	)
endif (WIN32)

subdirs(
	libs/owutil
	libs/qtutil
	libs/timer
	libs/pixertool
	libs/webcam
	wifo
	libs/softupdater
	libs/sound
	libs/imwrapper
    
	libs/sipwrapper
	libs/sipwrapper/src/phapi
)

if(IMWRAPPER_BACKEND_MULTI)
	subdirs(
		libs/imwrapper/src/purple
		libs/imwrapper/src/multiim
	)
endif(IMWRAPPER_BACKEND_MULTI)

subdirs(
	qutecom
    	crashreport
)