-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
58 lines (50 loc) · 1.15 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cmake_minimum_required(VERSION 3.0)
set(PROJECT_NAME rtsp_server)
project(${PROJECT_NAME})
SET(Boost_USE_STATIC_LIBS ON)
find_package(Boost 1.57.0 COMPONENTS system thread REQUIRED)
find_package(Threads)
include_directories(
${Boost_INCLUDE_DIRS}
)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_definitions(-Wall -D_REENTRANT -D_GNU_SOURCE -D_UNICODE -g -Os)
add_definitions(-DTIXML_USE_STL)
add_definitions(-std=c++1y)
set(SRCS
)
if(KERNELTYPE EQUAL 32)
add_definitions(-m32)
message(STATUS "Set `-m32` flags.")
endif()
set(SRCS_SDV_ERM
config/config.cpp
config/tinyxml/tinyxml.cpp
config/tinyxml/tinystr.cpp
config/tinyxml/tinyxmlparser.cpp
config/tinyxml/tinyxmlerror.cpp
example/example_sdv.cpp
)
add_executable(sdv ${SRCS_SDV_ERM})
target_link_libraries(
sdv
rtsp
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
add_executable(rtsp_server example/example_server.cpp)
target_link_libraries(
rtsp_server
rtsp
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
add_executable(rtsp_client example/example_client.cpp)
target_link_libraries(
rtsp_client
rtsp
${Boost_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
add_subdirectory(rtsp)
add_subdirectory(unittest)