mumsi/CMakeLists.txt

42 lines
1.1 KiB
CMake
Raw Normal View History

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)
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})
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
set(SOURCE_FILES
PjsuaCommunicator.cpp
2015-10-16 22:41:37 +02:00
PjsuaCommunicator.hpp
MumbleCommunicator.cpp
2015-10-16 22:41:37 +02:00
MumbleCommunicator.hpp
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
IncomingConnectionValidator.hpp
AudioFramesMixer.hpp
AudioFramesMixer.cpp)
2015-09-29 02:26:45 +02:00
add_executable(mumsi ${SOURCE_FILES} main.cpp)
target_link_libraries(mumsi ${PJSIP_LIBRARIES})
2015-09-29 02:26:45 +02:00
target_link_libraries(mumsi ${LOG4CPP_LIBRARIES})
target_link_libraries(mumsi ${Boost_LIBRARIES})
2015-10-30 13:43:06 +01:00
target_link_libraries(mumsi mumlib)