1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-23 08:28:36 -05:00
sdrangel/libperseus/CMakeLists.txt

43 lines
776 B
CMake
Raw Normal View History

2018-02-10 15:50:57 -05:00
project(perseus)
find_package(LibUSB)
2018-02-10 16:40:53 -05:00
add_definitions(-DHAVE_CONFIG_H)
2018-02-10 15:50:57 -05:00
set(perseus_SOURCES
${LIBPERSEUSSRC}/fifo.c
fpga_data.c
2018-02-10 15:50:57 -05:00
${LIBPERSEUSSRC}/perseuserr.c
${LIBPERSEUSSRC}/perseusfx2.c
${LIBPERSEUSSRC}/perseus-in.c
${LIBPERSEUSSRC}/perseus-sdr.c
)
set(perseus_HEADERS
${LIBPERSEUSSRC}/fifo.h
fpga_data.h
2018-02-10 15:50:57 -05: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)