| 
									
										
										
										
											2018-05-29 20:57:33 +02:00
										 |  |  | project(testsource)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 | 
					
						
							|  |  |  | set(PLUGIN_PREFIX "../../../plugins/samplesource/testsource")
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(testsource_SOURCES | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourceinput.cpp
 | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourceplugin.cpp
 | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourcethread.cpp
 | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourcesettings.cpp
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(testsource_HEADERS | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourceinput.h
 | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourceplugin.h
 | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourcethread.h
 | 
					
						
							|  |  |  | 	${PLUGIN_PREFIX}/testsourcesettings.h
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							|  |  |  | 	.
 | 
					
						
							|  |  |  | 	${CMAKE_CURRENT_BINARY_DIR}
 | 
					
						
							|  |  |  | 	${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_definitions(${QT_DEFINITIONS})
 | 
					
						
							|  |  |  | add_definitions(-DQT_PLUGIN)
 | 
					
						
							|  |  |  | add_definitions(-DQT_SHARED)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_library(inputtestsourcesrv SHARED | 
					
						
							|  |  |  | 	${testsource_SOURCES}
 | 
					
						
							|  |  |  | 	${testsource_HEADERS_MOC}
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | target_link_libraries(inputtestsourcesrv | 
					
						
							|  |  |  | 	${QT_LIBRARIES}
 | 
					
						
							|  |  |  | 	sdrbase
 | 
					
						
							|  |  |  | 	swagger
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-13 00:20:51 +02:00
										 |  |  | target_link_libraries(inputtestsourcesrv Qt5::Core)
 | 
					
						
							| 
									
										
										
										
											2018-05-29 20:57:33 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | install(TARGETS inputtestsourcesrv DESTINATION lib/pluginssrv/samplesource)
 |