-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
59 lines (43 loc) · 984 Bytes
/
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
#
# CMakeLists.txt
#
# Copyright (C) 2010 - 2022 Alfred E. Heggestad
#
##############################################################################
#
# Versioning
#
cmake_minimum_required(VERSION 3.7)
project(srtperf)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
##############################################################################
#
# Module/Package Includes
#
##############################################################################
#
# Compile options
#
set(CMAKE_C_STANDARD 11)
if(NOT MSVC)
add_compile_options(-Wall -Wextra)
endif()
include_directories(
src
/usr/local/include
/usr/local/include/re
/opt/local/include
)
link_directories(
/usr/local/lib
/opt/local/lib
)
add_definitions(
-DUSE_OPENSSL
)
##############################################################################
#
# Source section
#
add_executable(${PROJECT_NAME} src/main.c src/hexdump.c)
target_link_libraries(${PROJECT_NAME} -lre -lsrtp2 -lcrypto -lz -lpthread)