1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-06-24 21:15:24 -04:00
sdrangel/devices/limesdr/CMakeLists.txt

49 lines
841 B
CMake
Raw Normal View History

2017-04-10 23:57:15 +02:00
project(limesdrdevice)
set(limesdrdevice_SOURCES
2017-04-20 18:21:01 +02:00
devicelimesdr.cpp
2017-04-11 18:13:40 +02:00
devicelimesdrparam.cpp
devicelimesdrshared.cpp
2017-04-10 23:57:15 +02:00
)
set(limesdrdevice_HEADERS
2017-04-20 18:21:01 +02:00
devicelimesdr.h
2017-04-10 23:57:15 +02:00
devicelimesdrparam.h
devicelimesdrshared.h
2017-04-10 23:57:15 +02:00
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIMESUITESRC}/src
)
else (BUILD_DEBIAN)
2017-04-10 23:57:15 +02:00
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIMESUITE_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
2017-04-10 23:57:15 +02:00
2017-04-11 22:26:42 +02:00
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_SHARED)
2017-04-10 23:57:15 +02:00
add_library(limesdrdevice SHARED
${limesdrdevice_SOURCES}
)
if (BUILD_DEBIAN)
target_link_libraries(limesdrdevice
limesuite
sdrbase
)
else (BUILD_DEBIAN)
2017-04-10 23:57:15 +02:00
target_link_libraries(limesdrdevice
${LIMESUITE_LIBRARY}
sdrbase
)
endif (BUILD_DEBIAN)
2017-04-10 23:57:15 +02:00
install(TARGETS limesdrdevice DESTINATION lib)