summaryrefslogtreecommitdiff
path: root/libmirisdr/CMakeLists.txt
blob: e2ef09622abe16f80e1fd4963e3ea1614110f5ce (plain)
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
59
project(mirisdr)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

add_definitions(-DDETACH_KERNEL_DRIVER=ON)

find_package(LibUSB)

set(mirisdr_SOURCES
    ${LIBMIRISDRSRC}/src/libmirisdr.c 
    ${LIBMIRISDRSRC}/src/getopt/getopt.c 
)

set(mirisdr_HEADERS
    ${LIBMIRISDRSRC}/include/mirisdr.h
    ${LIBMIRISDRSRC}/include/mirisdr_export.h
    ${LIBMIRISDRSRC}/src/getopt/getopt.h
    ${LIBMIRISDRSRC}/src/convert/252_s16.c
    ${LIBMIRISDRSRC}/src/convert/336_s16.c
    ${LIBMIRISDRSRC}/src/convert/384_s16.c
    ${LIBMIRISDRSRC}/src/convert/504_s16.c
    ${LIBMIRISDRSRC}/src/convert/504_s8.c
    ${LIBMIRISDRSRC}/src/convert/base.c
    ${LIBMIRISDRSRC}/src/adc.c
    ${LIBMIRISDRSRC}/src/async.c
    ${LIBMIRISDRSRC}/src/constants.h
    ${LIBMIRISDRSRC}/src/convenience.c
    ${LIBMIRISDRSRC}/src/devices.c
    ${LIBMIRISDRSRC}/src/gain.c
    ${LIBMIRISDRSRC}/src/gain.h
    ${LIBMIRISDRSRC}/src/hard.c
    ${LIBMIRISDRSRC}/src/hard.h
    ${LIBMIRISDRSRC}/src/reg.c
    ${LIBMIRISDRSRC}/src/soft.c
    ${LIBMIRISDRSRC}/src/soft.h
    ${LIBMIRISDRSRC}/src/streaming.c
    ${LIBMIRISDRSRC}/src/structs.h
    ${LIBMIRISDRSRC}/src/sync.c
)

include_directories(
    .
    ${CMAKE_CURRENT_BINARY_DIR}
    ${LIBUSB_INCLUDE_DIR}
    ${LIBMIRISDRSRC}/include
    ${LIBMIRISDRSRC}/src
)

add_definitions(-DQT_SHARED)

add_library(mirisdr SHARED
    ${mirisdr_SOURCES}
)

target_link_libraries(mirisdr
    ${LIBUSB_LIBRARIES}
)

install(TARGETS mirisdr DESTINATION lib)