2017-10-09 12:27:47 -04:00
|
|
|
project(modam)
|
|
|
|
|
2018-03-29 09:20:38 -04:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
|
|
|
|
2017-10-09 12:27:47 -04:00
|
|
|
set(modam_SOURCES
|
|
|
|
ammod.cpp
|
|
|
|
ammodgui.cpp
|
|
|
|
ammodplugin.cpp
|
|
|
|
ammodsettings.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
set(modam_HEADERS
|
|
|
|
ammod.h
|
|
|
|
ammodgui.h
|
|
|
|
ammodplugin.h
|
|
|
|
ammodsettings.h
|
|
|
|
)
|
|
|
|
|
|
|
|
set(modam_FORMS
|
|
|
|
ammodgui.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
.
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
2018-04-05 18:54:18 -04:00
|
|
|
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
|
2017-10-09 12:27:47 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
add_definitions(${QT_DEFINITIONS})
|
|
|
|
add_definitions(-DQT_PLUGIN)
|
|
|
|
add_definitions(-DQT_SHARED)
|
|
|
|
|
|
|
|
qt5_wrap_ui(modam_FORMS_HEADERS ${modam_FORMS})
|
|
|
|
|
|
|
|
add_library(modam SHARED
|
|
|
|
${modam_SOURCES}
|
|
|
|
${modam_HEADERS_MOC}
|
|
|
|
${modam_FORMS_HEADERS}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(modam
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
sdrbase
|
2017-10-22 13:12:43 -04:00
|
|
|
sdrgui
|
2018-04-05 18:54:18 -04:00
|
|
|
swagger
|
2017-10-09 12:27:47 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
qt5_use_modules(modam Core Widgets)
|
|
|
|
|
2016-10-20 12:04:15 -04:00
|
|
|
install(TARGETS modam DESTINATION lib/plugins/channeltx)
|