mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 10:05:46 -05:00
37 lines
673 B
CMake
37 lines
673 B
CMake
project(hackrfdevice)
|
|
|
|
set(hackrfdevice_SOURCES
|
|
devicehackrf.cpp
|
|
devicehackrfvalues.cpp
|
|
devicehackrfshared.cpp
|
|
)
|
|
|
|
set(hackrfdevice_HEADERS
|
|
devicehackrf.h
|
|
devicehackrfparam.h
|
|
devicehackrfvalues.h
|
|
devicehackrfshared.h
|
|
)
|
|
|
|
include_directories(
|
|
${LIBHACKRF_INCLUDE_DIR}
|
|
)
|
|
|
|
add_library(hackrfdevice SHARED
|
|
${hackrfdevice_SOURCES}
|
|
)
|
|
|
|
set_target_properties(hackrfdevice
|
|
PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
|
|
|
|
target_link_libraries(hackrfdevice
|
|
${LIBHACKRF_LIBRARIES}
|
|
sdrbase
|
|
)
|
|
|
|
if(LIBHACKRF_EXTERNAL AND NOT LINUX)
|
|
add_dependencies(hackrfdevice hackrf)
|
|
endif()
|
|
|
|
install(TARGETS hackrfdevice DESTINATION ${INSTALL_LIB_DIR})
|