mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-16 21:31:47 -05:00
41 lines
814 B
CMake
41 lines
814 B
CMake
|
project(modwfm)
|
||
|
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||
|
set(PLUGIN_PREFIX "../../../plugins/channeltx/modwfm")
|
||
|
|
||
|
set(modwfm_SOURCES
|
||
|
${PLUGIN_PREFIX}/wfmmod.cpp
|
||
|
${PLUGIN_PREFIX}/wfmmodplugin.cpp
|
||
|
${PLUGIN_PREFIX}/wfmmodsettings.cpp
|
||
|
)
|
||
|
|
||
|
set(modwfm_HEADERS
|
||
|
${PLUGIN_PREFIX}/wfmmod.h
|
||
|
${PLUGIN_PREFIX}/wfmmodplugin.h
|
||
|
${PLUGIN_PREFIX}/wfmmodsettings.h
|
||
|
)
|
||
|
|
||
|
include_directories(
|
||
|
.
|
||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
||
|
)
|
||
|
|
||
|
add_definitions(${QT_DEFINITIONS})
|
||
|
add_definitions(-DQT_PLUGIN)
|
||
|
add_definitions(-DQT_SHARED)
|
||
|
|
||
|
add_library(modwfmsrv SHARED
|
||
|
${modwfm_SOURCES}
|
||
|
${modwfm_HEADERS_MOC}
|
||
|
)
|
||
|
|
||
|
target_link_libraries(modwfmsrv
|
||
|
${QT_LIBRARIES}
|
||
|
sdrbase
|
||
|
swagger
|
||
|
)
|
||
|
|
||
|
qt5_use_modules(modwfmsrv Core)
|
||
|
|
||
|
install(TARGETS modwfmsrv DESTINATION lib/pluginssrv/channeltx)
|