2015-11-23 21:23:02 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8.1)
|
2015-07-13 18:14:35 +02:00
|
|
|
project(mumsi)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
|
|
|
INCLUDE(FindPkgConfig)
|
2015-11-23 20:09:32 +01:00
|
|
|
find_package(Boost COMPONENTS system regex REQUIRED)
|
2015-07-13 18:14:35 +02:00
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
|
2020-03-26 22:21:45 +01:00
|
|
|
pkg_check_modules(PJSIP "libpjproject>=2.6")
|
2015-09-29 02:26:45 +02:00
|
|
|
pkg_check_modules(LOG4CPP "log4cpp")
|
2015-07-13 18:14:35 +02:00
|
|
|
|
2015-11-04 02:07:35 +01:00
|
|
|
add_definitions(${PJSIP_CFLAGS})
|
|
|
|
add_definitions(${LOG4CPP_CFLAGS})
|
|
|
|
|
2015-09-27 23:25:22 +02:00
|
|
|
include_directories(${PJSIP_INCLUDE_DIRS})
|
2015-09-29 02:26:45 +02:00
|
|
|
include_directories(${LOG4CPP_INCLUDE_DIRS})
|
2015-10-30 13:43:06 +01:00
|
|
|
include_directories(../mumlib/include)
|
2015-09-29 02:26:45 +02:00
|
|
|
|
2015-10-30 13:43:06 +01:00
|
|
|
link_directories(../mumlib/build)
|
2015-07-13 18:14:35 +02:00
|
|
|
|
2015-10-04 22:30:10 +02:00
|
|
|
set(SOURCE_FILES
|
|
|
|
PjsuaCommunicator.cpp
|
2015-10-16 22:41:37 +02:00
|
|
|
PjsuaCommunicator.hpp
|
2015-10-04 22:30:10 +02:00
|
|
|
MumbleCommunicator.cpp
|
2015-10-16 22:41:37 +02:00
|
|
|
MumbleCommunicator.hpp
|
2015-11-30 23:24:41 +01:00
|
|
|
MumbleChannelJoiner.cpp
|
|
|
|
MumbleChannelJoiner.hpp
|
2015-10-17 22:27:37 +02:00
|
|
|
Configuration.cpp
|
2015-11-09 00:51:51 +01:00
|
|
|
Configuration.hpp
|
|
|
|
IncomingConnectionValidator.cpp
|
2015-11-18 00:17:25 +01:00
|
|
|
IncomingConnectionValidator.hpp
|
|
|
|
AudioFramesMixer.hpp
|
|
|
|
AudioFramesMixer.cpp)
|
2015-09-29 02:26:45 +02:00
|
|
|
|
2015-10-04 22:30:10 +02:00
|
|
|
add_executable(mumsi ${SOURCE_FILES} main.cpp)
|
2015-09-27 23:25:22 +02:00
|
|
|
target_link_libraries(mumsi ${PJSIP_LIBRARIES})
|
2015-09-29 02:26:45 +02:00
|
|
|
target_link_libraries(mumsi ${LOG4CPP_LIBRARIES})
|
2015-10-04 22:30:10 +02:00
|
|
|
target_link_libraries(mumsi ${Boost_LIBRARIES})
|
2015-10-30 13:43:06 +01:00
|
|
|
target_link_libraries(mumsi mumlib)
|
2015-10-04 22:30:10 +02:00
|
|
|
|