1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-07 08:24:43 -04:00

Enable SigMF plugins on windows

This commit is contained in:
Jon Beniston
2023-05-26 08:28:12 +01:00
parent fe56c1c11c
commit 3a79e63a92
6 changed files with 33 additions and 5 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ if(ENABLE_SOAPYSDR AND SOAPYSDR_FOUND)
add_subdirectory(soapysdrinput)
endif()
if(LIBSIGMF_FOUND AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(LIBSIGMF_FOUND)
add_subdirectory(sigmffileinput)
endif()
@@ -19,6 +19,7 @@ set(sigmffileinput_HEADERS
include_directories(
${CMAKE_SOURCE_DIR}/swagger/sdrangel/code/qt5/client
${LIBSIGMF_INCLUDE_DIR}
${Boost_INCLUDE_DIRS}
)
if(NOT SERVER_MODE)
@@ -49,14 +50,20 @@ add_library(${TARGET_NAME} SHARED
${sigmffileinput_SOURCES}
)
if (NOT WIN32)
link_directories(${Boost_LIBRARY_DIRS})
endif()
target_link_libraries(${TARGET_NAME}
Boost::disable_autolinking
Qt::Core
${TARGET_LIB}
sdrbase
${TARGET_LIB_GUI}
swagger
${LIBSIGMF_LIBRARIES}
)
target_link_libraries(${TARGET_NAME} optimized ${LIBSIGMF_LIBRARIES})
target_link_libraries(${TARGET_NAME} debug ${LIBSIGMF_LIBRARIES_DEBUG})
install(TARGETS ${TARGET_NAME} DESTINATION ${INSTALL_FOLDER})