1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-14 04:11:48 -05:00
sdrangel/devices/hackrf/CMakeLists.txt
2018-12-02 03:06:04 +01:00

52 lines
930 B
CMake

project(hackrfdevice)
set(hackrfdevice_SOURCES
devicehackrf.cpp
devicehackrfvalues.cpp
devicehackrfshared.cpp
)
set(hackrfdevice_HEADERS
devicehackrf.h
devicehackrfparam.h
devicehackrfvalues.h
devicehackrfshared.h
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
${LIBHACKRFSRC}
)
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}
)
set_target_properties(hackrfdevice PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
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)