-
Notifications
You must be signed in to change notification settings - Fork 27
/
CMakeLists.txt
37 lines (26 loc) · 886 Bytes
/
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
29
30
31
32
33
34
35
36
37
cmake_minimum_required(VERSION 3.5)
project(video_server)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE DEBUG)
set(CMAKE_CXX_FLAGS "-Wall -std=c++11")
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR})
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(PkgConfig)
pkg_check_modules(LOG4CPP REQUIRED log4cpp)
find_package(Live555 REQUIRED)
find_package(FFmpeg REQUIRED)
include_directories(${FFmpeg_INCLUDE_DIRS})
include_directories(${Live555_INCLUDE_DIRS})
include_directories(${YAML_CPP_INCLUDE_DIR})
include_directories("include")
file(GLOB SOURCE_FILES "src/*.cpp" "src/config/*.cpp")
add_subdirectory(contrib)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(
${PROJECT_NAME}
${LOG4CPP_LIBRARIES}
${Live555_LIBRARIES}
yaml-cpp
${FFmpeg_LIBRARIES}
)