- Merged with upstream version
[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         rtl_433.c
21         devices/silvercrest.c
22         devices/rubicson.c
23         devices/prologue.c
24         devices/waveman.c
25         devices/steffen.c
26         devices/elv.c
27         devices/lacrosse.c
28         devices/acurite.c
29         devices/oregon_scientific.c
30         devices/mebus.c
31         devices/intertechno.c
32         devices/alecto.c
33         devices/newkaku.c)
34
35 target_link_libraries(rtl_433
36         ${LIBRTLSDR_LIBRARIES}
37     ${CMAKE_THREAD_LIBS_INIT}
38 )
39
40         
41 set(INSTALL_TARGETS rtl_433)
42 if(UNIX)
43 target_link_libraries(rtl_433 m)
44 endif()
45
46 ########################################################################
47 # Install built library files & utilities
48 ########################################################################
49 install(TARGETS ${INSTALL_TARGETS}
50     RUNTIME DESTINATION bin              # .dll file
51 )