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-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-01-07 05:24:09 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBHACKRFLIBSRC}/include
|
|
|
|
${LIBHACKRFLIBSRC}/src
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIBHACKRF_INCLUDE_DIR}
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
#add_definitions(${QT_DEFINITIONS})
|
|
|
|
#add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
add_library(hackrfdevice SHARED
|
|
|
|
${hackrfdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(hackrfdevice
|
|
|
|
hackrf
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(hackrfdevice
|
|
|
|
${LIBHACKRF_LIBRARIES}
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
endif (BUILD_DEBIAN)
|
|
|
|
|
|
|
|
install(TARGETS hackrfdevice DESTINATION lib)
|