2017-04-10 21:57:15 +00:00
|
|
|
project(limesdrdevice)
|
|
|
|
|
|
|
|
set(limesdrdevice_SOURCES
|
2017-04-20 16:21:01 +00:00
|
|
|
devicelimesdr.cpp
|
2017-04-11 16:13:40 +00:00
|
|
|
devicelimesdrparam.cpp
|
2017-04-23 01:36:10 +00:00
|
|
|
devicelimesdrshared.cpp
|
2017-04-10 21:57:15 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(limesdrdevice_HEADERS
|
2017-04-20 16:21:01 +00:00
|
|
|
devicelimesdr.h
|
2017-04-10 21:57:15 +00:00
|
|
|
devicelimesdrparam.h
|
2017-04-23 01:36:10 +00:00
|
|
|
devicelimesdrshared.h
|
2017-04-10 21:57:15 +00:00
|
|
|
)
|
|
|
|
|
2017-05-09 00:47:45 +00:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2017-05-09 00:50:56 +00:00
|
|
|
${LIBLIMESUITESRC}/src
|
2017-05-09 01:58:23 +00:00
|
|
|
${LIBLIMESUITESRC}/src/ADF4002
|
|
|
|
${LIBLIMESUITESRC}/src/ConnectionRegistry
|
|
|
|
${LIBLIMESUITESRC}/src/FPGA_common
|
|
|
|
${LIBLIMESUITESRC}/src/GFIR
|
|
|
|
${LIBLIMESUITESRC}/src/lms7002m
|
|
|
|
${LIBLIMESUITESRC}/src/lms7002m_mcu
|
|
|
|
${LIBLIMESUITESRC}/src/Si5351C
|
|
|
|
${LIBLIMESUITESRC}/src/protocols
|
2017-05-09 00:47:45 +00:00
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-04-10 21:57:15 +00:00
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
${LIMESUITE_INCLUDE_DIR}
|
|
|
|
)
|
2017-05-09 00:47:45 +00:00
|
|
|
endif (BUILD_DEBIAN)
|
2017-04-10 21:57:15 +00:00
|
|
|
|
2017-04-11 20:26:42 +00:00
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
2017-04-10 21:57:15 +00:00
|
|
|
add_library(limesdrdevice SHARED
|
|
|
|
${limesdrdevice_SOURCES}
|
|
|
|
)
|
|
|
|
|
2017-05-09 00:47:45 +00:00
|
|
|
if (BUILD_DEBIAN)
|
|
|
|
target_link_libraries(limesdrdevice
|
|
|
|
limesuite
|
|
|
|
sdrbase
|
|
|
|
)
|
|
|
|
else (BUILD_DEBIAN)
|
2017-04-10 21:57:15 +00:00
|
|
|
target_link_libraries(limesdrdevice
|
|
|
|
${LIMESUITE_LIBRARY}
|
|
|
|
sdrbase
|
|
|
|
)
|
2017-05-09 00:47:45 +00:00
|
|
|
endif (BUILD_DEBIAN)
|
2017-04-10 21:57:15 +00:00
|
|
|
|
|
|
|
install(TARGETS limesdrdevice DESTINATION lib)
|