forked from BELABOX/srtla
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 1.19 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
cmake_minimum_required(VERSION 3.16)
project(srtla_rec VERSION 1.0.0)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/Modules")
find_package(spdlog REQUIRED)
add_library(common_obj OBJECT
src/common.c
src/common.h)
add_executable(srtla_rec
src/receiver.cpp
src/receiver.h)
target_include_directories(srtla_rec PRIVATE
"deps/argparse/include")
target_link_libraries(srtla_rec PRIVATE
common_obj
spdlog::spdlog
-Wl,-rpath,/usr/local/lib
)
target_compile_features(srtla_rec PRIVATE cxx_std_17)
#target_compile_options(srtla_rec PRIVATE -Wall -Wextra)
target_compile_definitions(srtla_rec PUBLIC VERSION="${CMAKE_PROJECT_VERSION}")
add_executable(srtla_send
src/sender.cpp
src/sender.h)
target_include_directories(srtla_send PRIVATE
"deps/argparse/include")
target_link_libraries(srtla_send PRIVATE
common_obj
spdlog::spdlog
-Wl,-rpath,/usr/local/lib
)
target_compile_features(srtla_send PRIVATE cxx_std_17)
#target_compile_options(srtla_send PRIVATE -Wall -Wextra)
target_compile_definitions(srtla_send PUBLIC VERSION="${CMAKE_PROJECT_VERSION}")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
install(TARGETS srtla_rec srtla_send RUNTIME DESTINATION bin)