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