mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-29 19:28:47 -05:00
import freqtracker to new cmake config
This commit is contained in:
parent
acde7a0bd6
commit
0602879b2e
@ -1,6 +1,5 @@
|
|||||||
project(demod)
|
project(demod)
|
||||||
|
|
||||||
|
|
||||||
add_subdirectory(demodam)
|
add_subdirectory(demodam)
|
||||||
add_subdirectory(demodbfm)
|
add_subdirectory(demodbfm)
|
||||||
add_subdirectory(demodnfm)
|
add_subdirectory(demodnfm)
|
||||||
|
@ -1,51 +1,54 @@
|
|||||||
project(freqtracker)
|
project(freqtracker)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
||||||
|
|
||||||
set(freqtracker_SOURCES
|
set(freqtracker_SOURCES
|
||||||
freqtracker.cpp
|
freqtracker.cpp
|
||||||
freqtrackergui.cpp
|
|
||||||
freqtrackersettings.cpp
|
freqtrackersettings.cpp
|
||||||
freqtrackerplugin.cpp
|
freqtrackerplugin.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(freqtracker_HEADERS
|
set(freqtracker_HEADERS
|
||||||
freqtracker.h
|
freqtracker.h
|
||||||
freqtrackergui.h
|
|
||||||
freqtrackersettings.h
|
freqtrackersettings.h
|
||||||
freqtrackerplugin.h
|
freqtrackerplugin.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(freqtracker_FORMS
|
|
||||||
freqtrackergui.ui
|
|
||||||
)
|
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
.
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
||||||
)
|
)
|
||||||
|
|
||||||
#include(${QT_USE_FILE})
|
if(NOT SERVER_MODE)
|
||||||
add_definitions(${QT_DEFINITIONS})
|
set(freqtracker_SOURCES
|
||||||
add_definitions(-DQT_PLUGIN)
|
|
||||||
add_definitions(-DQT_SHARED)
|
|
||||||
|
|
||||||
#qt5_wrap_cpp(nfm_HEADERS_MOC ${nfm_HEADERS})
|
|
||||||
qt5_wrap_ui(freqtracker_FORMS_HEADERS ${freqtracker_FORMS})
|
|
||||||
|
|
||||||
add_library(freqtracker SHARED
|
|
||||||
${freqtracker_SOURCES}
|
${freqtracker_SOURCES}
|
||||||
${freqtracker_HEADERS_MOC}
|
freqtrackergui.cpp
|
||||||
${freqtracker_FORMS_HEADERS}
|
|
||||||
|
freqtrackergui.ui
|
||||||
|
)
|
||||||
|
set(freqtracker_HEADERS
|
||||||
|
${freqtracker_HEADERS}
|
||||||
|
freqtrackergui.h
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(freqtracker
|
set(TARGET_NAME freqtracker)
|
||||||
${QT_LIBRARIES}
|
set(TARGET_LIB "Qt5::Widgets")
|
||||||
|
set(TARGET_LIB_GUI "sdrgui")
|
||||||
|
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
|
||||||
|
else()
|
||||||
|
set(TARGET_NAME freqtrackersrv)
|
||||||
|
set(TARGET_LIB "")
|
||||||
|
set(TARGET_LIB_GUI "")
|
||||||
|
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_library(${TARGET_NAME} SHARED
|
||||||
|
${freqtracker_SOURCES}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
Qt5::Core
|
||||||
|
${TARGET_LIB}
|
||||||
sdrbase
|
sdrbase
|
||||||
sdrgui
|
${TARGET_LIB_GUI}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(freqtracker Qt5::Core Qt5::Widgets)
|
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
|
||||||
|
|
||||||
install(TARGETS freqtracker DESTINATION lib/plugins/channelrx)
|
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
#--------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Pro file for Android and Windows builds with Qt Creator
|
|
||||||
#
|
|
||||||
#--------------------------------------------------------
|
|
||||||
|
|
||||||
TEMPLATE = lib
|
|
||||||
CONFIG += plugin
|
|
||||||
|
|
||||||
QT += core gui widgets multimedia
|
|
||||||
|
|
||||||
TARGET = freqtracker
|
|
||||||
|
|
||||||
DEFINES += USE_SSE2=1
|
|
||||||
QMAKE_CXXFLAGS += -msse2
|
|
||||||
DEFINES += USE_SSE4_1=1
|
|
||||||
QMAKE_CXXFLAGS += -msse4.1
|
|
||||||
QMAKE_CXXFLAGS += -std=c++11
|
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD
|
|
||||||
INCLUDEPATH += ../../../exports
|
|
||||||
INCLUDEPATH += ../../../sdrbase
|
|
||||||
INCLUDEPATH += ../../../sdrgui
|
|
||||||
INCLUDEPATH += ../../../swagger/sdrangel/code/qt5/client
|
|
||||||
|
|
||||||
CONFIG(Release):build_subdir = release
|
|
||||||
CONFIG(Debug):build_subdir = debug
|
|
||||||
|
|
||||||
SOURCES += freqtracker.cpp\
|
|
||||||
freqtrackergui.cpp\
|
|
||||||
freqtrackerplugin.cpp\
|
|
||||||
freqtrackersettings.cpp
|
|
||||||
|
|
||||||
HEADERS += freqtracker.h\
|
|
||||||
freqtrackergui.h\
|
|
||||||
freqtrackerplugin.h\
|
|
||||||
freqtrackersettings.h
|
|
||||||
|
|
||||||
FORMS += freqtrackergui.ui
|
|
||||||
|
|
||||||
LIBS += -L../../../sdrbase/$${build_subdir} -lsdrbase
|
|
||||||
LIBS += -L../../../sdrgui/$${build_subdir} -lsdrgui
|
|
||||||
LIBS += -L../../../swagger/$${build_subdir} -lswagger
|
|
||||||
|
|
||||||
macx {
|
|
||||||
QMAKE_LFLAGS_SONAME = -Wl,-install_name,@rpath/
|
|
||||||
}
|
|
||||||
|
|
||||||
RESOURCES = ../../../sdrgui/resources/res.qrc
|
|
@ -30,7 +30,7 @@ class FreqTrackerPlugin : public QObject, PluginInterface {
|
|||||||
Q_PLUGIN_METADATA(IID "sdrangel.channel.freqtracker")
|
Q_PLUGIN_METADATA(IID "sdrangel.channel.freqtracker")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit FreqTrackerPlugin(QObject* parent = NULL);
|
explicit FreqTrackerPlugin(QObject* parent = nullptr);
|
||||||
|
|
||||||
const PluginDescriptor& getPluginDescriptor() const;
|
const PluginDescriptor& getPluginDescriptor() const;
|
||||||
void initPlugin(PluginAPI* pluginAPI);
|
void initPlugin(PluginAPI* pluginAPI);
|
||||||
|
Loading…
Reference in New Issue
Block a user