2015-09-29 02:26:45 +02:00
|
|
|
cmake_minimum_required(VERSION 3.0.0)
|
2015-07-13 18:14:35 +02:00
|
|
|
project(mumsi)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
|
|
|
INCLUDE(FindPkgConfig)
|
2015-10-04 22:30:10 +02:00
|
|
|
find_package(Boost COMPONENTS system unit_test_framework program_options filesystem REQUIRED)
|
2015-07-13 18:14:35 +02:00
|
|
|
find_package(PkgConfig REQUIRED)
|
|
|
|
|
|
|
|
pkg_check_modules(OPUS "opus")
|
2015-09-27 23:25:22 +02:00
|
|
|
pkg_check_modules(PJSIP "libpjproject")
|
2015-09-29 02:26:45 +02:00
|
|
|
pkg_check_modules(LOG4CPP "log4cpp")
|
2015-10-04 22:30:10 +02:00
|
|
|
pkg_check_modules(SNDFILE "sndfile")
|
|
|
|
|
2015-07-13 18:14:35 +02:00
|
|
|
|
|
|
|
include_directories(${OPUS_INCLUDE_DIRS})
|
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-04 22:30:10 +02:00
|
|
|
include_directories(${SNDFILE_INCLUDE_DIRS})
|
|
|
|
include_directories(libmumble)
|
2015-09-29 02:26:45 +02:00
|
|
|
|
2015-07-13 18:14:35 +02:00
|
|
|
link_directories(libmumble)
|
|
|
|
|
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
|
|
|
|
ISamplesBuffer.hpp)
|
2015-09-29 02:26:45 +02:00
|
|
|
|
2015-10-16 22:41:37 +02:00
|
|
|
#set(TEST_SOURCE_FILES
|
|
|
|
# SoundSampleQueueTest.cpp
|
|
|
|
#)
|
2015-10-04 22:30:10 +02:00
|
|
|
|
|
|
|
add_executable(mumsi ${SOURCE_FILES} main.cpp)
|
2015-07-13 18:14:35 +02:00
|
|
|
target_link_libraries(mumsi ${OPUS_LIBRARIES})
|
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 ${SNDFILE_LIBRARIES})
|
|
|
|
target_link_libraries(mumsi ${Boost_LIBRARIES})
|
2015-07-20 21:09:22 +02:00
|
|
|
target_link_libraries(mumsi mumble)
|
2015-10-04 22:30:10 +02:00
|
|
|
|
2015-10-16 22:41:37 +02:00
|
|
|
#add_executable(mumsi_test ${SOURCE_FILES} ${TEST_SOURCE_FILES} test_main.cpp)
|
|
|
|
#target_link_libraries(mumsi_test ${OPUS_LIBRARIES})
|
|
|
|
#target_link_libraries(mumsi_test ${PJSIP_LIBRARIES})
|
|
|
|
#target_link_libraries(mumsi_test ${LOG4CPP_LIBRARIES})
|
|
|
|
#target_link_libraries(mumsi_test ${SNDFILE_LIBRARIES})
|
|
|
|
#target_link_libraries(mumsi_test ${Boost_LIBRARIES})
|
|
|
|
#target_link_libraries(mumsi_test mumble)
|