| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  | project(hackrfoutput)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-12-10 01:57:50 +01:00
										 |  |  | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  | set(hackrfoutput_SOURCES | 
					
						
							|  |  |  |     hackrfoutputgui.cpp
 | 
					
						
							|  |  |  |     hackrfoutput.cpp
 | 
					
						
							|  |  |  |     hackrfoutputplugin.cpp
 | 
					
						
							|  |  |  |     hackrfoutputsettings.cpp
 | 
					
						
							|  |  |  |     hackrfoutputthread.cpp
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(hackrfoutput_HEADERS | 
					
						
							|  |  |  |     hackrfoutputgui.h
 | 
					
						
							|  |  |  |     hackrfoutput.h
 | 
					
						
							|  |  |  |     hackrfoutputplugin.h
 | 
					
						
							|  |  |  |     hackrfoutputsettings.h
 | 
					
						
							|  |  |  |     hackrfoutputthread.h
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(hackrfoutput_FORMS | 
					
						
							|  |  |  |     hackrfoutputgui.ui
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							|  |  |  |         .
 | 
					
						
							|  |  |  |     ${CMAKE_CURRENT_BINARY_DIR}
 | 
					
						
							| 
									
										
										
										
											2017-12-10 01:57:50 +01:00
										 |  |  |     ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client    
 | 
					
						
							| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  |     ${CMAKE_SOURCE_DIR}/devices    
 | 
					
						
							|  |  |  |     ${LIBHACKRFSRC}
 | 
					
						
							|  |  |  |     ${LIBHACKRFSRC}/libhackrf/src
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | else (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							|  |  |  |         .
 | 
					
						
							|  |  |  |     ${CMAKE_CURRENT_BINARY_DIR}
 | 
					
						
							| 
									
										
										
										
											2017-12-10 01:57:50 +01:00
										 |  |  |     ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client    
 | 
					
						
							| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  |     ${CMAKE_SOURCE_DIR}/devices    
 | 
					
						
							|  |  |  |     ${LIBHACKRF_INCLUDE_DIR}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | endif (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #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(hackrfoutput_HEADERS_MOC ${hackrfoutput_HEADERS})
 | 
					
						
							|  |  |  | qt5_wrap_ui(hackrfoutput_FORMS_HEADERS ${hackrfoutput_FORMS})
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_library(outputhackrf SHARED | 
					
						
							|  |  |  |     ${hackrfoutput_SOURCES}
 | 
					
						
							|  |  |  |     ${hackrfoutput_HEADERS_MOC}
 | 
					
						
							|  |  |  |     ${hackrfoutput_FORMS_HEADERS}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | target_link_libraries(outputhackrf | 
					
						
							|  |  |  |     ${QT_LIBRARIES}
 | 
					
						
							|  |  |  |     hackrf
 | 
					
						
							|  |  |  |     sdrbase
 | 
					
						
							| 
									
										
										
										
											2017-10-22 19:12:43 +02:00
										 |  |  |     sdrgui
 | 
					
						
							| 
									
										
										
										
											2017-12-10 01:57:50 +01:00
										 |  |  |     swagger
 | 
					
						
							| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  |     hackrfdevice
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | else (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | target_link_libraries(outputhackrf | 
					
						
							|  |  |  |     ${QT_LIBRARIES}
 | 
					
						
							|  |  |  |     ${LIBHACKRF_LIBRARIES}
 | 
					
						
							|  |  |  |     sdrbase
 | 
					
						
							| 
									
										
										
										
											2017-10-22 19:12:43 +02:00
										 |  |  |     sdrgui
 | 
					
						
							| 
									
										
										
										
											2017-12-10 01:57:50 +01:00
										 |  |  |     swagger
 | 
					
						
							| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  |     hackrfdevice
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | endif (BUILD_DEBIAN)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-13 00:20:51 +02:00
										 |  |  | target_link_libraries(outputhackrf Qt5::Core Qt5::Widgets)
 | 
					
						
							| 
									
										
										
										
											2017-01-08 04:13:20 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | install(TARGETS outputhackrf DESTINATION lib/plugins/samplesink)
 |