| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | project(hackrf)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(hackrf_SOURCES | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     hackrfgui.cpp
 | 
					
						
							|  |  |  |     hackrfinput.cpp
 | 
					
						
							|  |  |  |     hackrfplugin.cpp
 | 
					
						
							|  |  |  |     hackrfsettings.cpp
 | 
					
						
							|  |  |  |     hackrfthread.cpp
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(hackrf_HEADERS | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     hackrfgui.h
 | 
					
						
							|  |  |  |     hackrfinput.h
 | 
					
						
							|  |  |  |     hackrfplugin.h
 | 
					
						
							|  |  |  |     hackrfsettings.h
 | 
					
						
							|  |  |  |     hackrfthread.h
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(hackrf_FORMS | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     hackrfgui.ui
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  | if (BUILD_DEBIAN)
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | include_directories( | 
					
						
							| 
									
										
										
										
											2016-06-29 10:00:38 +02:00
										 |  |  |         .
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     ${CMAKE_CURRENT_BINARY_DIR}
 | 
					
						
							| 
									
										
										
										
											2016-10-26 02:40:00 +02:00
										 |  |  |     ${LIBHACKRFSRC}
 | 
					
						
							|  |  |  |     ${LIBHACKRFSRC}/libhackrf/src
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | )
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  | else (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							|  |  |  |         .
 | 
					
						
							|  |  |  |     ${CMAKE_CURRENT_BINARY_DIR}
 | 
					
						
							|  |  |  |     ${LIBHACKRF_INCLUDE_DIR}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | endif (BUILD_DEBIAN)
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include(${QT_USE_FILE})
 | 
					
						
							|  |  |  | #add_definitions(${QT_DEFINITIONS})
 | 
					
						
							|  |  |  | add_definitions("${QT_DEFINITIONS} -DLIBHACKRF_DYN_RATES")
 | 
					
						
							|  |  |  | add_definitions(-DQT_PLUGIN)
 | 
					
						
							|  |  |  | add_definitions(-DQT_SHARED)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #qt4_wrap_cpp(hackrf_HEADERS_MOC ${hackrf_HEADERS})
 | 
					
						
							|  |  |  | qt5_wrap_ui(hackrf_FORMS_HEADERS ${hackrf_FORMS})
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_library(inputhackrf SHARED | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     ${hackrf_SOURCES}
 | 
					
						
							|  |  |  |     ${hackrf_HEADERS_MOC}
 | 
					
						
							|  |  |  |     ${hackrf_FORMS_HEADERS}
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  | if (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | target_link_libraries(inputhackrf | 
					
						
							|  |  |  |     ${QT_LIBRARIES}
 | 
					
						
							| 
									
										
										
										
											2016-10-26 01:08:39 +02:00
										 |  |  |     hackrf
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     sdrbase
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | else (BUILD_DEBIAN)
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | target_link_libraries(inputhackrf | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     ${QT_LIBRARIES}
 | 
					
						
							| 
									
										
										
										
											2016-10-26 01:08:39 +02:00
										 |  |  |     ${LIBHACKRF_LIBRARIES}
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  |     sdrbase
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | )
 | 
					
						
							| 
									
										
										
										
											2016-10-26 00:57:46 +02:00
										 |  |  | endif (BUILD_DEBIAN)
 | 
					
						
							| 
									
										
										
										
											2015-09-24 02:50:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-27 08:38:50 +02:00
										 |  |  | qt5_use_modules(inputhackrf Core Widgets)
 | 
					
						
							| 
									
										
										
										
											2016-02-24 11:51:36 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | install(TARGETS inputhackrf DESTINATION lib/plugins/samplesource)
 |