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