1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-30 03:38:55 -05:00
sdrangel/plugins/channelrx/demodvormc/CMakeLists.txt

71 lines
1.5 KiB
CMake
Raw Normal View History

project(vormc)
2020-11-24 07:31:16 -05:00
set(vormc_SOURCES
vordemodmc.cpp
vordemodmcsettings.cpp
vordemodmcbaseband.cpp
vordemodmcsink.cpp
vordemodmcplugin.cpp
vordemodmcwebapiadapter.cpp
vordemodmcreport.cpp
2020-11-24 07:31:16 -05:00
)
set(vormc_HEADERS
vordemodmc.h
vordemodmcsettings.h
vordemodmcbaseband.h
vordemodmcsink.h
vordemodmcplugin.h
vordemodmcwebapiadapter.h
vordemodmcreport.h
2020-11-24 07:31:16 -05:00
)
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
)
if(NOT SERVER_MODE)
set(vormc_SOURCES
${vormc_SOURCES}
vordemodmcgui.cpp
vordemodmcgui.ui
2020-11-24 07:31:16 -05:00
map.qrc
icons.qrc
)
set(vormc_HEADERS
${vormc_HEADERS}
vordemodmcgui.h
2020-11-24 07:31:16 -05:00
navaid.h
../demodadsb/csv.h
)
set(TARGET_NAME demodvormc)
2020-11-24 07:31:16 -05:00
set(TARGET_LIB "Qt5::Widgets" Qt5::Quick Qt5::QuickWidgets Qt5::Positioning)
set(TARGET_LIB_GUI "sdrgui")
set(INSTALL_FOLDER ${INSTALL_PLUGINS_DIR})
else()
set(TARGET_NAME demodvormcsrv)
2020-11-24 07:31:16 -05:00
set(TARGET_LIB "")
set(TARGET_LIB_GUI "")
set(INSTALL_FOLDER ${INSTALL_PLUGINSSRV_DIR})
endif()
add_library(${TARGET_NAME} SHARED
${vormc_SOURCES}
2020-11-24 07:31:16 -05:00
)
target_link_libraries(${TARGET_NAME}
Qt5::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
)
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})
# Install debug symbols
if (WIN32)
install(FILES $<TARGET_PDB_FILE:${TARGET_NAME}> CONFIGURATIONS Debug RelWithDebInfo DESTINATION ${INSTALL_FOLDER} )
endif()