| 
									
										
										
										
											2018-09-22 02:55:40 +02:00
										 |  |  | project(bladerf2device)
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(bladerf2device_SOURCES | 
					
						
							|  |  |  |     devicebladerf2.cpp
 | 
					
						
							| 
									
										
										
										
											2018-09-23 19:56:24 +02:00
										 |  |  |     devicebladerf2shared.cpp
 | 
					
						
							| 
									
										
										
										
											2018-09-22 02:55:40 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(bladerf2device_HEADERS | 
					
						
							|  |  |  |     devicebladerf2.h
 | 
					
						
							| 
									
										
										
										
											2018-09-23 19:56:24 +02:00
										 |  |  |     devicebladerf2shared.h
 | 
					
						
							| 
									
										
										
										
											2018-09-22 02:55:40 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include_directories( | 
					
						
							| 
									
										
										
										
											2019-05-09 14:18:27 +02:00
										 |  |  |     ${LIBBLADERF_INCLUDE_DIRS}
 | 
					
						
							| 
									
										
										
										
											2018-09-22 02:55:40 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | add_library(bladerf2device SHARED | 
					
						
							| 
									
										
										
										
											2018-09-22 10:39:09 +02:00
										 |  |  |     ${bladerf2device_SOURCES}
 | 
					
						
							| 
									
										
										
										
											2018-09-22 02:55:40 +02:00
										 |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-30 15:19:19 +03:00
										 |  |  | if(LIBBLADERF_EXTERNAL)
 | 
					
						
							| 
									
										
										
										
											2019-06-02 23:28:37 +02:00
										 |  |  |     add_dependencies(bladerf2device bladerf)
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | set_target_properties(bladerf2device | 
					
						
							|  |  |  |     PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
 | 
					
						
							| 
									
										
										
										
											2018-12-02 03:06:04 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-22 02:55:40 +02:00
										 |  |  | target_link_libraries(bladerf2device | 
					
						
							|  |  |  |     ${LIBBLADERF_LIBRARIES}
 | 
					
						
							|  |  |  |     sdrbase
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 11:54:58 +02:00
										 |  |  | install(TARGETS bladerf2device DESTINATION ${INSTALL_LIB_DIR})
 |