| 
									
										
										
										
											2018-02-10 21:50:57 +01:00
										 |  |  | project(perseus)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-24 21:21:04 +01:00
										 |  |  | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-10 21:50:57 +01:00
										 |  |  | find_package(LibUSB)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-10 22:40:53 +01:00
										 |  |  | add_definitions(-DHAVE_CONFIG_H)
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-02-10 21:50:57 +01:00
										 |  |  | set(perseus_SOURCES | 
					
						
							|  |  |  |     ${LIBPERSEUSSRC}/fifo.c
 | 
					
						
							| 
									
										
										
										
											2018-02-10 23:26:02 +01:00
										 |  |  |     fpga_data.c
 | 
					
						
							| 
									
										
										
										
											2018-02-10 21:50:57 +01:00
										 |  |  |     ${LIBPERSEUSSRC}/perseuserr.c
 | 
					
						
							|  |  |  |     ${LIBPERSEUSSRC}/perseusfx2.c
 | 
					
						
							|  |  |  |     ${LIBPERSEUSSRC}/perseus-in.c
 | 
					
						
							|  |  |  |     ${LIBPERSEUSSRC}/perseus-sdr.c
 | 
					
						
							|  |  |  | )
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set(perseus_HEADERS | 
					
						
							|  |  |  |     ${LIBPERSEUSSRC}/fifo.h
 | 
					
						
							| 
									
										
										
										
											2018-02-10 23:26:02 +01:00
										 |  |  |     fpga_data.h
 | 
					
						
							| 
									
										
										
										
											2018-02-10 21:50:57 +01:00
										 |  |  |     ${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)
 |