2018-02-06 12:49:22 -05:00
|
|
|
project(perseusdevice)
|
|
|
|
|
|
|
|
set(perseusdevice_SOURCES
|
|
|
|
deviceperseus.cpp
|
|
|
|
deviceperseusscan.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(perseusdevice_HEADERS
|
|
|
|
deviceperseus.h
|
|
|
|
deviceperseusscan.h
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
2019-05-31 03:58:34 -04:00
|
|
|
${LIBUSB_INCLUDE_DIR}
|
2018-02-06 12:49:22 -05:00
|
|
|
${LIBPERSEUS_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(perseusdevice SHARED
|
|
|
|
${perseusdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2020-04-30 08:19:19 -04:00
|
|
|
if(LIBPERSEUS_EXTERNAL)
|
2019-06-02 19:30:05 -04:00
|
|
|
add_dependencies(perseusdevice perseus)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
set_target_properties(perseusdevice
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-01 21:06:04 -05:00
|
|
|
|
2018-02-06 12:49:22 -05:00
|
|
|
target_link_libraries(perseusdevice
|
2019-05-31 03:58:34 -04:00
|
|
|
${LIBUSB_LIBRARIES}
|
2018-02-06 12:49:22 -05:00
|
|
|
${LIBPERSEUS_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2019-05-01 05:54:58 -04:00
|
|
|
install(TARGETS perseusdevice DESTINATION ${INSTALL_LIB_DIR})
|