| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | project(xtrxoutput)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(xtrxoutput_SOURCES | 
					
						
							|  |  |  | 	xtrxoutput.cpp
 | 
					
						
							|  |  |  | 	xtrxoutputplugin.cpp
 | 
					
						
							|  |  |  | 	xtrxoutputsettings.cpp
 | 
					
						
							| 
									
										
										
										
											2020-02-27 11:17:16 +01:00
										 |  |  |     xtrxoutputthread.cpp
 | 
					
						
							|  |  |  |     xtrxoutputwebapiadapter.cpp
 | 
					
						
							| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(xtrxoutput_HEADERS | 
					
						
							|  |  |  | 	xtrxoutput.h
 | 
					
						
							|  |  |  | 	xtrxoutputplugin.h
 | 
					
						
							|  |  |  | 	xtrxoutputsettings.h
 | 
					
						
							| 
									
										
										
										
											2020-02-27 11:17:16 +01:00
										 |  |  |     xtrxoutputthread.h
 | 
					
						
							|  |  |  |     xtrxoutputwebapiadapter.h
 | 
					
						
							| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							| 
									
										
										
										
											2020-02-27 11:17:16 +01:00
										 |  |  |     ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
 | 
					
						
							| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | 	${CMAKE_SOURCE_DIR}/devices
 | 
					
						
							|  |  |  | 	${LIBXTRX_INCLUDE_DIRS}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | if(NOT SERVER_MODE)
 | 
					
						
							|  |  |  |     set(xtrxoutput_SOURCES | 
					
						
							|  |  |  |         ${xtrxoutput_SOURCES}
 | 
					
						
							|  |  |  |         xtrxoutputgui.cpp
 | 
					
						
							|  |  |  |         xtrxoutputgui.ui
 | 
					
						
							|  |  |  |     )
 | 
					
						
							|  |  |  |     set(xtrxoutput_HEADERS | 
					
						
							|  |  |  |         ${xtrxoutput_HEADERS}
 | 
					
						
							|  |  |  |         xtrxoutputgui.h
 | 
					
						
							|  |  |  |     )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     set(TARGET_NAME outputxtrx)
 | 
					
						
							|  |  |  |     set(TARGET_LIB "Qt5::Widgets")
 | 
					
						
							|  |  |  |     set(TARGET_LIB_GUI "sdrgui")
 | 
					
						
							| 
									
										
										
										
											2019-05-01 15:17:27 +02:00
										 |  |  |     set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | else()
 | 
					
						
							|  |  |  |     set(TARGET_NAME outputxtrxsrv)
 | 
					
						
							|  |  |  |     set(TARGET_LIB "")
 | 
					
						
							|  |  |  |     set(TARGET_LIB_GUI "")
 | 
					
						
							| 
									
										
										
										
											2019-05-01 15:17:27 +02:00
										 |  |  |     set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_library(${TARGET_NAME} SHARED | 
					
						
							| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | 	${xtrxoutput_SOURCES}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | target_link_libraries(${TARGET_NAME} | 
					
						
							| 
									
										
										
										
											2020-02-27 11:17:16 +01:00
										 |  |  |     Qt5::Core
 | 
					
						
							|  |  |  |     ${TARGET_LIB}
 | 
					
						
							| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | 	sdrbase
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | 	${TARGET_LIB_GUI}
 | 
					
						
							| 
									
										
										
										
											2020-02-27 11:17:16 +01:00
										 |  |  |     swagger
 | 
					
						
							|  |  |  |     ${LIBXTRX_LIBRARY}
 | 
					
						
							|  |  |  |     xtrxdevice
 | 
					
						
							| 
									
										
										
										
											2019-01-02 15:35:43 +01:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 15:17:27 +02:00
										 |  |  | install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
 |