mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-10-31 13:00:26 -04:00 
			
		
		
		
	
		
			
	
	
		
			41 lines
		
	
	
		
			790 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
		
		
			
		
	
	
			41 lines
		
	
	
		
			790 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
|  | project(perseus)
 | ||
|  | 
 | ||
|  | find_package(LibUSB)
 | ||
|  | 
 | ||
|  | set(perseus_SOURCES | ||
|  |     ${LIBPERSEUSSRC}/fifo.c
 | ||
|  |     ${LIBPERSEUSSRC}/perseus24v11_512.c
 | ||
|  |     ${LIBPERSEUSSRC}/perseus24v41_512.c
 | ||
|  |     ${LIBPERSEUSSRC}/perseuserr.c
 | ||
|  |     ${LIBPERSEUSSRC}/perseusfx2.c
 | ||
|  |     ${LIBPERSEUSSRC}/perseus-in.c
 | ||
|  |     ${LIBPERSEUSSRC}/perseus-sdr.c
 | ||
|  | )
 | ||
|  | 
 | ||
|  | set(perseus_HEADERS | ||
|  |     ${LIBPERSEUSSRC}/fifo.h
 | ||
|  |     ${LIBPERSEUSSRC}/perseuserr.h
 | ||
|  |     ${LIBPERSEUSSRC}/perseusfx2.h
 | ||
|  |     ${LIBPERSEUSSRC}/perseus-in.h
 | ||
|  |     ${LIBPERSEUSSRC}/perseus-sdr.h
 | ||
|  | )
 | ||
|  | 
 | ||
|  | include_directories( | ||
|  |     .
 | ||
|  |     ${CMAKE_CURRENT_BINARY_DIR}
 | ||
|  |     ${LIBUSB_INCLUDE_DIR}    
 | ||
|  |     ${LIBPERSEUSSRC}
 | ||
|  | )
 | ||
|  | 
 | ||
|  | add_definitions(-DQT_SHARED)
 | ||
|  | 
 | ||
|  | add_library(perseus SHARED | ||
|  |     ${perseus_SOURCES}
 | ||
|  | )
 | ||
|  | 
 | ||
|  | target_link_libraries(perseus | ||
|  |     ${LIBUSB_LIBRARIES}
 | ||
|  | )
 | ||
|  | 
 | ||
|  | install(TARGETS perseus DESTINATION lib)
 |