Bugfixes
[rtl-433.git] / src / CMakeLists.txt
1 # rtl_433 is free software; you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation; either version 3, or (at your option)
4 # any later version.
5 #
6 # rtl_433 is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
9 # GNU General Public License for more details.
10 #
11 # You should have received a copy of the GNU General Public License
12 # along with GNU Radio; see the file COPYING.  If not, write to
13 # the Free Software Foundation, Inc., 51 Franklin Street,
14 # Boston, MA 02110-1301, USA.
15
16 ########################################################################
17 # Build utility
18 ########################################################################
19 add_executable(rtl_433 
20         baseband.c
21         bitbuffer.c
22         data.c
23         pulse_demod.c
24         pulse_detect.c
25         rtl_433.c
26         util.c
27         devices/acurite.c
28         devices/alecto.c
29         devices/ambient_weather.c
30         devices/blyss.c
31         devices/brennenstuhl_rcs_2044.c
32         devices/calibeur.c
33         devices/cardin.c
34         devices/chuango.c
35         devices/current_cost.c
36         devices/danfoss.c
37         devices/dsc.c
38         devices/ec3k.c
39         devices/efergy_e2_classic.c
40         devices/elv.c
41         devices/emontx.c
42         devices/esperanza_ews.c
43         devices/fineoffset.c
44         devices/fineoffset_wh1080.c
45         devices/generic_remote.c
46         devices/generic_temperature_sensor.c
47         devices/gt_wt_02.c
48         devices/hideki.c
49         devices/ht680.c
50         devices/inovalley-kw9015b.c
51         devices/intertechno.c
52         devices/kedsum.c
53         devices/lacrosse.c
54         devices/lacrosse_TX141TH_Bv2.c
55         devices/lacrossews.c
56         devices/lightwave_rf.c
57         devices/mebus.c
58         devices/newkaku.c
59         devices/nexus.c
60         devices/oil_watchman.c
61         devices/oregon_scientific.c
62         devices/oregon_scientific_v1.c
63         devices/prologue.c
64         devices/rubicson.c
65         devices/silvercrest.c
66         devices/springfield.c
67         devices/steffen.c
68         devices/tfa_twin_plus_30.3049.c
69         devices/tfa_pool_thermometer.c
70         devices/valeo.c
71         devices/waveman.c
72         devices/wg_pb12v1.c
73         devices/wt450.c
74         devices/x10_rf.c
75         devices/s3318p.c
76         devices/akhan_100F14.c
77         devices/quhwa.c
78         devices/proove.c
79         devices/bresser_3ch.c
80         devices/oregon_scientific_sl109h.c
81         devices/steelmate.c
82         devices/schraeder.c
83         devices/elro_db286a.c
84         devices/efergy_optical.c
85         devices/hondaremote.c
86         devices/new_template.c
87         devices/radiohead_ask.c
88         devices/kerui.c
89         devices/fineoffset_wh1050.c
90         devices/honeywell.c
91         devices/maverick_et73x.c
92         devices/rftech.c
93         devices/lacrosse_tx35.c
94
95 )
96
97 add_library(data data.c)
98
99 target_link_libraries(rtl_433
100         ${LIBRTLSDR_LIBRARIES}
101     ${CMAKE_THREAD_LIBS_INIT}
102 )
103
104         
105 set(INSTALL_TARGETS rtl_433)
106 if(UNIX)
107 target_link_libraries(rtl_433 m)
108 endif()
109
110 ########################################################################
111 # Install built library files & utilities
112 ########################################################################
113 install(TARGETS ${INSTALL_TARGETS}
114     RUNTIME DESTINATION bin              # .dll file
115 )