2017-01-07 10:24:09 +00:00
|
|
|
project(hackrfdevice)
|
|
|
|
|
|
|
|
set(hackrfdevice_SOURCES
|
|
|
|
devicehackrf.cpp
|
2017-01-08 01:48:01 +00:00
|
|
|
devicehackrfvalues.cpp
|
2017-07-20 21:42:29 +00:00
|
|
|
devicehackrfshared.cpp
|
2017-01-07 10:24:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(hackrfdevice_HEADERS
|
|
|
|
devicehackrf.h
|
2017-01-07 23:33:11 +00:00
|
|
|
devicehackrfparam.h
|
2017-01-08 01:48:01 +00:00
|
|
|
devicehackrfvalues.h
|
2017-07-20 21:42:29 +00:00
|
|
|
devicehackrfshared.h
|
2017-01-07 10:24:09 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${LIBHACKRF_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(hackrfdevice SHARED
|
|
|
|
${hackrfdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
set_target_properties(hackrfdevice
|
|
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
2018-12-02 02:06:04 +00:00
|
|
|
|
2017-01-07 10:24:09 +00:00
|
|
|
target_link_libraries(hackrfdevice
|
|
|
|
${LIBHACKRF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
|
2020-04-30 12:19:19 +00:00
|
|
|
if(LIBHACKRF_EXTERNAL AND NOT LINUX)
|
2019-06-24 16:25:53 +00:00
|
|
|
add_dependencies(hackrfdevice hackrf)
|
|
|
|
endif()
|
|
|
|
|
2019-05-01 09:54:58 +00:00
|
|
|
install(TARGETS hackrfdevice DESTINATION ${INSTALL_LIB_DIR})
|