mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 13:00:26 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			51 lines
		
	
	
		
			882 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			882 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| project(bladerf)
 | |
| 
 | |
| set(bladerf_SOURCES
 | |
| 	bladerfgui.cpp
 | |
| 	bladerfinput.cpp
 | |
| 	bladerfplugin.cpp
 | |
| 	bladerfthread.cpp
 | |
| )
 | |
| 
 | |
| set(bladerf_HEADERS
 | |
| 	bladerfgui.h
 | |
| 	bladerfinput.h
 | |
| 	bladerfplugin.h
 | |
| 	bladerfthread.h
 | |
| )
 | |
| 
 | |
| set(bladerf_FORMS
 | |
| 	bladerfgui.ui
 | |
| )
 | |
| 
 | |
| include_directories(
 | |
| 	.
 | |
| 	${CMAKE_CURRENT_BINARY_DIR}
 | |
| 	${CMAKE_SOURCE_DIR}/include
 | |
| 	${CMAKE_SOURCE_DIR}/include-gpl
 | |
| 	${LIBRTLSDR_INCLUDE_DIR}
 | |
| )
 | |
| 
 | |
| #include(${QT_USE_FILE})
 | |
| add_definitions(${QT_DEFINITIONS})
 | |
| add_definitions(-DQT_PLUGIN)
 | |
| add_definitions(-DQT_SHARED)
 | |
| 
 | |
| #qt4_wrap_cpp(bladerf_HEADERS_MOC ${bladerf_HEADERS})
 | |
| qt5_wrap_ui(bladerf_FORMS_HEADERS ${bladerf_FORMS})
 | |
| 
 | |
| add_library(inputbladerf SHARED
 | |
| 	${bladerf_SOURCES}
 | |
| 	${bladerf_HEADERS_MOC}
 | |
| 	${bladerf_FORMS_HEADERS}
 | |
| )
 | |
| 
 | |
| target_link_libraries(inputbladerf
 | |
| 	${QT_LIBRARIES}
 | |
| 	${LIBBLADERF_LIBRARIES}
 | |
| 	${LIBUSB_LIBRARIES}
 | |
| 	sdrbase
 | |
| )
 | |
| 
 | |
| qt5_use_modules(inputbladerf Core Widgets OpenGL Multimedia)
 |