forked from staskobzar/sippak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
67 lines (59 loc) · 2.27 KB
/
CMakeLists.txt
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
66
#
# sippak -- SIP command line utility.
# Copyright (C) 2018, Stas Kobzar <[email protected]>
#
# This file is part of sippak.
#
# sippack is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# sippack is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with sippack. If not, see <http://www.gnu.org/licenses/>.
#
cmake_minimum_required (VERSION 3.5)
project (sippak VERSION 1.0.0 LANGUAGES C)
set (CMAKE_C_STANDARD 99)
set (PROJECT_URL "https://gitlab.com/staskobzar/sippak")
set (PROJECT_AUTHOR "Stas Kobzar <[email protected]>")
string (TIMESTAMP PROJECT_BUILTTIME "%Y-%m-%d %H:%M:%SZ UTC" UTC)
include (FindPkgConfig)
set(EXTRA_LIBS "")
# MacOS frameworks to use with pjmedia
if(APPLE)
find_library(CORE_AUDIO CoreAudio)
set(EXTRA_LIBS ${EXTRA_LIBS} ${CORE_AUDIO})
find_library(CORE_SRV CoreServices)
set(EXTRA_LIBS ${EXTRA_LIBS} ${CORE_SRV})
find_library(AUDIO_UNIT AudioUnit)
set(EXTRA_LIBS ${EXTRA_LIBS} ${AUDIO_UNIT})
find_library(AUDIO_TOOLBOX AudioToolbox)
set(EXTRA_LIBS ${EXTRA_LIBS} ${AUDIO_TOOLBOX})
find_library(FOUNDATION Foundation)
set(EXTRA_LIBS ${EXTRA_LIBS} ${FOUNDATION})
find_library(APP_KIT AppKit)
set(EXTRA_LIBS ${EXTRA_LIBS} ${APP_KIT})
find_library(AVFOUNDATION AVFoundation)
set(EXTRA_LIBS ${EXTRA_LIBS} ${AVFOUNDATION})
find_library(CORE_GRAPH CoreGraphics)
set(EXTRA_LIBS ${EXTRA_LIBS} ${CORE_GRAPH})
find_library(QUARTZ_CORE QuartzCore)
set(EXTRA_LIBS ${EXTRA_LIBS} ${QUARTZ_CORE})
find_library(CORE_VIDEO CoreVideo)
set(EXTRA_LIBS ${EXTRA_LIBS} ${CORE_VIDEO})
find_library(CORE_MEDIA CoreMedia)
set(EXTRA_LIBS ${EXTRA_LIBS} ${CORE_MEDIA})
find_library(VID_TOOLBOX VideoToolbox)
set(EXTRA_LIBS ${EXTRA_LIBS} ${VID_TOOLBOX})
endif(APPLE)
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/src/include )
add_subdirectory (src)
enable_testing()
add_subdirectory (tests)
add_subdirectory (dist)