1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-30 03:38:55 -05:00
sdrangel/devices/hackrf/CMakeLists.txt

37 lines
673 B
CMake
Raw Normal View History

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")
2018-12-01 21:06:04 -05:00
target_link_libraries(hackrfdevice
${LIBHACKRF_LIBRARIES}
sdrbase
)
2020-04-30 08:19:19 -04:00
if(LIBHACKRF_EXTERNAL AND NOT LINUX)
2019-06-24 12:25:53 -04:00
add_dependencies(hackrfdevice hackrf)
endif()
install(TARGETS hackrfdevice DESTINATION ${INSTALL_LIB_DIR})