mumsi/CMakeLists.txt

34 lines
902 B
CMake
Raw Normal View History

2015-11-04 01:22:59 +01:00
cmake_minimum_required(VERSION 3.0.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-04 01:22:59 +01:00
find_package(Boost COMPONENTS system REQUIRED)
2015-07-13 18:14:35 +02:00
find_package(PkgConfig REQUIRED)
pkg_check_modules(PJSIP "libpjproject")
2015-09-29 02:26:45 +02:00
pkg_check_modules(LOG4CPP "log4cpp")
2015-07-13 18:14:35 +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
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
2015-11-03 02:13:15 +01:00
ICommunicator.hpp
2015-10-17 22:27:37 +02:00
Configuration.cpp
Configuration.hpp)
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)