1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 15:51:47 -05:00
sdrangel/sdrbench/CMakeLists.txt
srcejon 1df07b21ae Update CMakeLists.txt to allow static libraries to be built, as well as shared.
Add BUILD_BENCH, BUILD_SHARED_LIBS, ENABLE_AARONIARTSA and ENABLE_METIS options.
2024-09-11 20:16:40 +01:00

49 lines
843 B
CMake

project (sdrbench)
if (FT8_SUPPORT)
set(sdrbench_FT8_LIB ft8)
endif()
set(sdrbench_SOURCES
mainbench.cpp
parserbench.cpp
test_golay2312.cpp
test_ft8.cpp
test_callsign.cpp
test_ft8protocols.cpp
)
set(sdrbench_HEADERS
mainbench.h
parserbench.h
)
add_library(sdrbench SHARED
${sdrbench_SOURCES}
)
include_directories(
${FFTW3F_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/exports
${CMAKE_SOURCE_DIR}/sdrbase
${CMAKE_SOURCE_DIR}/logging
${CMAKE_SOURCE_DIR}
)
if(DEFINED FFTW3F_DEPENDS)
add_dependencies(sdrbench "${FFTW3F_DEPENDS}")
endif()
target_link_libraries(sdrbench
Boost::disable_autolinking
${FFTW3F_LIBRARIES}
Qt::Core
Qt::Gui
sdrbase
logging
${sdrbench_FT8_LIB}
)
install(TARGETS sdrbench DESTINATION ${INSTALL_LIB_DIR})