-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
44 lines (35 loc) · 1.26 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
cmake_minimum_required (VERSION 3.0)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
project (PopoSDR CXX)
# lib srcs
file(GLOB_RECURSE Lib_srcs src/*.cpp include/*.h)
include_directories(
${CMAKE_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/modems/include
)
# Add lib
add_library(LibPopoSDR STATIC ${Lib_srcs})
# Link lib with socket stuff for win
IF (WIN32)
target_link_libraries(LibPopoSDR ws2_32 wsock32)
ENDIF()
# Modem srcs
file(GLOB_RECURSE Modem_srcs modems/*.cpp modems/include/*.h)
# Examples & Modems
add_executable(GMSK_Test examples/GMSK_Test.cpp ${Modem_srcs})
add_executable(AFSK_Test examples/AFSK_Test.cpp ${Modem_srcs})
add_executable(Main_Test main.cpp)
add_executable(WFM_Test examples/WFM_Mono_UDP.cpp)
add_executable(GMSK_Rx examples/GMSK_Rx.cpp)
add_executable(QAM_Rx examples/QAM_Rx.cpp)
add_executable(BerTest examples/BerTest.cpp ${Modem_srcs})
# Link with lib
target_link_libraries(GMSK_Test LibPopoSDR)
target_link_libraries(AFSK_Test LibPopoSDR)
target_link_libraries(Main_Test LibPopoSDR)
target_link_libraries(WFM_Test LibPopoSDR)
target_link_libraries(GMSK_Rx LibPopoSDR)
target_link_libraries(QAM_Rx LibPopoSDR)
target_link_libraries(BerTest LibPopoSDR)