-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
28 lines (17 loc) · 1.15 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
cmake_minimum_required(VERSION 3.4)
project(SipServer)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -DASIO_STANDALONE -pthread")
add_library(argparse INTERFACE )
target_include_directories(argparse INTERFACE lib/argparse )
add_library(asio INTERFACE )
target_include_directories(asio INTERFACE lib/asio)
add_library(easyloggingpp lib/easyloggingpp/src/easylogging++.cc)
target_include_directories(easyloggingpp INTERFACE lib/easyloggingpp/src)
include_directories(src)
set(SOURCE_FILES main.cpp src/SipServer.hpp src/SipServer.cpp src/Builder.cpp src/Builder.hpp src/utils/logHelper.hpp src/ErrorCode.hpp src/ExitException.cpp src/ExitException.hpp src/Registrar.cpp src/Registrar.hpp src/SipUser.hpp src/utils/constants.hpp src/SipUser.cpp src/AuthManager.hpp src/AuthManager.cpp src/SipAccount.hpp src/SipAccount.cpp src/Db.hpp src/utils/hash.hpp)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
include_directories(/usr/include)
link_directories(/usr/lib)
target_link_libraries(${PROJECT_NAME} stdc++ asio argparse easyloggingpp pthread resip rutil dum sqlite3)