bladeRF/host/libraries/libbladeRF/doc/examples/CMakeLists.txt
Ryan Thompson 15b7d9c3b6 host: squashed cmake warnings
updated cmake requirement from 2.8 to 2.8.12
2023-02-13 03:28:19 -08:00

32 lines
1.1 KiB
CMake

cmake_minimum_required(VERSION 2.8.12)
project(libbladeRF_doc_examples C)
set(INCLUDES
${libbladeRF_SOURCE_DIR}/include
${BLADERF_HOST_COMMON_SOURCE_DIR}/include
)
set(LIBS libbladerf_shared)
if(MSVC)
set(INCLUDES ${INCLUDES} ${MSVC_C99_INCLUDES})
endif()
include_directories(${INCLUDES})
add_executable(libbladeRF_example_sync_rxtx sync_rxtx.c example_common.c)
target_link_libraries(libbladeRF_example_sync_rxtx ${LIBS})
add_executable(libbladeRF_example_sync_rx_meta sync_rx_meta.c example_common.c)
target_link_libraries(libbladeRF_example_sync_rx_meta ${LIBS})
add_executable(libbladeRF_example_sync_tx_meta sync_tx_meta.c example_common.c)
target_link_libraries(libbladeRF_example_sync_tx_meta ${LIBS})
add_executable(libbladeRF_example_open_via_serial open_via_serial.c example_common.c)
target_link_libraries(libbladeRF_example_open_via_serial ${LIBS})
add_executable(libbladeRF_example_boilerplate boilerplate.c)
target_link_libraries(libbladeRF_example_boilerplate ${LIBS})
add_executable(libbladeRF_example_quick_tune quick_tune.c)
target_link_libraries(libbladeRF_example_quick_tune ${LIBS})