1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-08 01:26:01 -05:00
sdrangel/devices/perseus/CMakeLists.txt

55 lines
996 B
CMake
Raw Normal View History

2018-02-06 12:49:22 -05:00
project(perseusdevice)
set (CMAKE_CXX_STANDARD 11)
set(perseusdevice_SOURCES
deviceperseus.cpp
deviceperseusscan.cpp
)
set(perseusdevice_HEADERS
deviceperseus.h
deviceperseusscan.h
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
2019-05-12 18:35:03 -04:00
${LIBUSB_INCLUDE_DIR}
2018-02-06 12:49:22 -05:00
${LIBPERSEUSSRC}
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
2019-05-12 18:35:03 -04:00
${LIBUSB_INCLUDE_DIR}
2018-02-06 12:49:22 -05:00
${LIBPERSEUS_INCLUDE_DIR}
)
endif (BUILD_DEBIAN)
#add_definitions(${QT_DEFINITIONS})
#add_definitions(-DQT_SHARED)
add_library(perseusdevice SHARED
${perseusdevice_SOURCES}
)
2018-12-01 21:06:04 -05:00
set_target_properties(perseusdevice PROPERTIES DEFINE_SYMBOL "devices_EXPORTS")
2018-02-06 12:49:22 -05:00
if (BUILD_DEBIAN)
target_link_libraries(perseusdevice
2019-05-12 18:35:03 -04:00
${LIBUSB_LIBRARIES}
2018-02-06 12:49:22 -05:00
perseus
sdrbase
)
else (BUILD_DEBIAN)
target_link_libraries(perseusdevice
2019-05-12 18:35:03 -04:00
${LIBUSB_LIBRARIES}
2018-02-06 12:49:22 -05:00
${LIBPERSEUS_LIBRARIES}
sdrbase
)
endif (BUILD_DEBIAN)
install(TARGETS perseusdevice DESTINATION lib)