1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Perseus: add libusb in cmake files

This commit is contained in:
f4exb 2019-05-13 00:35:03 +02:00
parent b2e35b2d31
commit 9d22738412
2 changed files with 10 additions and 2 deletions

View File

@ -16,12 +16,14 @@ if (BUILD_DEBIAN)
include_directories( include_directories(
. .
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${LIBUSB_INCLUDE_DIR}
${LIBPERSEUSSRC} ${LIBPERSEUSSRC}
) )
else (BUILD_DEBIAN) else (BUILD_DEBIAN)
include_directories( include_directories(
. .
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${LIBUSB_INCLUDE_DIR}
${LIBPERSEUS_INCLUDE_DIR} ${LIBPERSEUS_INCLUDE_DIR}
) )
endif (BUILD_DEBIAN) endif (BUILD_DEBIAN)
@ -37,11 +39,13 @@ set_target_properties(perseusdevice PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
if (BUILD_DEBIAN) if (BUILD_DEBIAN)
target_link_libraries(perseusdevice target_link_libraries(perseusdevice
${LIBUSB_LIBRARIES}
perseus perseus
sdrbase sdrbase
) )
else (BUILD_DEBIAN) else (BUILD_DEBIAN)
target_link_libraries(perseusdevice target_link_libraries(perseusdevice
${LIBUSB_LIBRARIES}
${LIBPERSEUS_LIBRARIES} ${LIBPERSEUS_LIBRARIES}
sdrbase sdrbase
) )

View File

@ -27,7 +27,8 @@ include_directories(
. .
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices ${CMAKE_SOURCE_DIR}/devices
${LIBUSB_INCLUDE_DIR}
${LIBPERSEUSSRC} ${LIBPERSEUSSRC}
${LIBPERSEUSSRC}/libperseus/src ${LIBPERSEUSSRC}/libperseus/src
) )
@ -36,7 +37,8 @@ include_directories(
. .
${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client ${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices ${CMAKE_SOURCE_DIR}/devices
${LIBUSB_INCLUDE_DIR}
${LIBPERSEUS_INCLUDE_DIR} ${LIBPERSEUS_INCLUDE_DIR}
) )
endif (BUILD_DEBIAN) endif (BUILD_DEBIAN)
@ -59,6 +61,7 @@ add_library(inputperseus SHARED
if (BUILD_DEBIAN) if (BUILD_DEBIAN)
target_link_libraries(inputperseus target_link_libraries(inputperseus
${QT_LIBRARIES} ${QT_LIBRARIES}
${LIBUSB_LIBRARIES}
perseus perseus
sdrbase sdrbase
sdrgui sdrgui
@ -68,6 +71,7 @@ target_link_libraries(inputperseus
else (BUILD_DEBIAN) else (BUILD_DEBIAN)
target_link_libraries(inputperseus target_link_libraries(inputperseus
${QT_LIBRARIES} ${QT_LIBRARIES}
${LIBUSB_LIBRARIES}
${LIBPERSEUS_LIBRARIES} ${LIBPERSEUS_LIBRARIES}
sdrbase sdrbase
sdrgui sdrgui