1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-03 15:31:15 -05:00
sdrangel/plugins/samplesource/perseus/CMakeLists.txt

83 lines
1.6 KiB
CMake
Raw Normal View History

2018-02-07 03:12:34 -05:00
project(perseus)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(perseus_SOURCES
2018-02-08 10:45:00 -05:00
perseusgui.cpp
2018-02-08 00:32:17 -05:00
perseusinput.cpp
2018-02-08 12:37:34 -05:00
perseusplugin.cpp
2018-02-07 03:12:34 -05:00
perseussettings.cpp
2018-02-07 17:44:20 -05:00
perseusthread.cpp
2018-02-07 03:12:34 -05:00
)
set(perseus_HEADERS
2018-02-08 10:45:00 -05:00
perseusgui.h
2018-02-08 00:32:17 -05:00
perseusinput.h
2018-02-08 12:37:34 -05:00
perseusplugin.h
2018-02-07 03:12:34 -05:00
perseussettings.h
2018-02-07 17:44:20 -05:00
perseusthread.h
2018-02-07 03:12:34 -05:00
)
set(perseus_FORMS
perseusgui.ui
)
if (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
2018-02-08 00:32:17 -05:00
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
2018-02-07 17:44:20 -05:00
${LIBPERSEUSSRC}
${LIBPERSEUSSRC}/libperseus/src
2018-02-07 03:12:34 -05:00
)
else (BUILD_DEBIAN)
include_directories(
.
${CMAKE_CURRENT_BINARY_DIR}
2018-02-08 00:32:17 -05:00
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${CMAKE_SOURCE_DIR}/devices
2018-02-07 17:44:20 -05:00
${LIBPERSEUS_INCLUDE_DIR}
2018-02-07 03:12:34 -05:00
)
endif (BUILD_DEBIAN)
#include(${QT_USE_FILE})
#add_definitions(${QT_DEFINITIONS})
add_definitions("${QT_DEFINITIONS} -DLIBAIRSPY_DYN_RATES")
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_SHARED)
#qt4_wrap_cpp(perseus_HEADERS_MOC ${perseus_HEADERS})
qt5_wrap_ui(perseus_FORMS_HEADERS ${perseus_FORMS})
add_library(inputperseus SHARED
${perseus_SOURCES}
${perseus_HEADERS_MOC}
${perseus_FORMS_HEADERS}
)
if (BUILD_DEBIAN)
target_link_libraries(inputperseus
${QT_LIBRARIES}
perseus
sdrbase
sdrgui
swagger
2018-02-08 12:37:34 -05:00
perseusdevice
2018-02-07 03:12:34 -05:00
)
else (BUILD_DEBIAN)
target_link_libraries(inputperseus
${QT_LIBRARIES}
2018-02-07 17:44:20 -05:00
${LIBPERSEUS_LIBRARIES}
2018-02-07 03:12:34 -05:00
sdrbase
sdrgui
swagger
2018-02-08 12:37:34 -05:00
perseusdevice
2018-02-07 03:12:34 -05:00
)
endif (BUILD_DEBIAN)
qt5_use_modules(inputperseus Core Widgets)
install(TARGETS inputperseus DESTINATION lib/plugins/samplesource)